aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4persistent.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-02-18 10:08:24 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-02-23 19:48:54 +0000
commit4d417c7fbf8b9e00e260951e29cba16072272cc5 (patch)
treee195039ddbe3c47e40e994b0a4a447645663c6b1 /src/qml/jsruntime/qv4persistent.cpp
parent5d4fd80e1e5290ccfe7ef216420a457f57d64705 (diff)
Fix MSVC 64 bit warnings about loss of data when converting from 'size_t' to 'int'.
jsruntime\qv4arraybuffer.cpp(94) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data jsruntime\qv4persistent.cpp(53) : warning C4267: 'initializing' : conversion from 'size_t' to 'const int', possible loss of data Change-Id: I6ccef9a64ecfb53b18204b35e17421c0a5ac955b Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4persistent.cpp')
-rw-r--r--src/qml/jsruntime/qv4persistent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4persistent.cpp b/src/qml/jsruntime/qv4persistent.cpp
index dfa9346140..88dc1946b8 100644
--- a/src/qml/jsruntime/qv4persistent.cpp
+++ b/src/qml/jsruntime/qv4persistent.cpp
@@ -50,7 +50,7 @@ struct Header {
int freeList;
};
-static const int kEntriesPerPage = (WTF::pageSize() - sizeof(Header)) / sizeof(Value);
+static const int kEntriesPerPage = int((WTF::pageSize() - sizeof(Header)) / sizeof(Value));
struct Page {
Header header;