From a5389f3189f70177407dfd67d8b1d43e7a6b580b Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 15 Feb 2017 10:19:32 +0100 Subject: [PATCH] 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 --- src/qml/memory/qv4mm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/memory/qv4mm.cpp b/src/qml/memory/qv4mm.cpp index 1609dd5adb..5356b0d591 100644 --- a/src/qml/memory/qv4mm.cpp +++ b/src/qml/memory/qv4mm.cpp @@ -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)