QtQml/qv4mm.cpp: Fix type of debug helper lastAllocRequestedSlots

Fix MSVC 64 developer build:
memory\qv4mm.cpp(653): error C2220: warning treated as error - no 'object' file generated
memory\qv4mm.cpp(653): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
memory\qv4mm.cpp(689): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data

Change-Id: Ia8c28e960027877eb4d45f12db7406902e755c03
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Friedemann Kleint 2017-02-15 10:19:32 +01:00
parent 72ccc49e66
commit a5389f3189
1 changed files with 1 additions and 1 deletions

View File

@ -643,7 +643,7 @@ MemoryManager::MemoryManager(ExecutionEngine *engine)
}
#ifndef QT_NO_DEBUG
static int lastAllocRequestedSlots = 0;
static size_t lastAllocRequestedSlots = 0;
#endif
Heap::Base *MemoryManager::allocString(std::size_t unmanagedSize)