aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kdab.com>2017-02-15 13:48:07 +0200
committerBogDan Vatra <bogdan@kdab.com>2017-02-15 17:06:34 +0000
commitf048d9913d3a552c85f12df4cf1895989f828e17 (patch)
tree530a43c78678b14ce045fa1fd17fdf96eb7e86d0 /src/qml
parent74dc6ef8d55b77c61b76c99f05d7aebb34aad534 (diff)
Fix assert on QT_POINTER_SIZE != 8
Change-Id: I8fa64fc8d67b6093eb368866d17d967644514577 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml')
-rw-r--r--src/qml/memory/qv4mm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/memory/qv4mm.cpp b/src/qml/memory/qv4mm.cpp
index 5356b0d591..a829e902fb 100644
--- a/src/qml/memory/qv4mm.cpp
+++ b/src/qml/memory/qv4mm.cpp
@@ -385,7 +385,7 @@ void Chunk::sortIntoBins(HeapItem **bins, uint nBins)
}
}
#ifndef QT_NO_DEBUG
- Q_ASSERT(freeSlots + allocatedSlots == EntriesInBitmap*8*sizeof(quintptr));
+ Q_ASSERT(freeSlots + allocatedSlots == (EntriesInBitmap - start) * 8 * sizeof(quintptr));
#endif
}