diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2016-09-30 13:34:48 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2016-10-10 05:41:37 +0000 |
commit | 533a07838d8d86ec75b86e211c8a167cac23cef0 (patch) | |
tree | a003ad62c651b6f1f35a7a9f1cceb38f787a16fd /tests/auto/core/qframeallocator/tst_qframeallocator.cpp | |
parent | 298c6ebcf6d763080d1fce14d1482cea95c08d9a (diff) |
Silence some warnings in tests with MSVC2015
Change-Id: I81634986b22871f2c0cb9175925ca6ac4714694f
Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'tests/auto/core/qframeallocator/tst_qframeallocator.cpp')
-rw-r--r-- | tests/auto/core/qframeallocator/tst_qframeallocator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/core/qframeallocator/tst_qframeallocator.cpp b/tests/auto/core/qframeallocator/tst_qframeallocator.cpp index 76d4d15ce..a098792ee 100644 --- a/tests/auto/core/qframeallocator/tst_qframeallocator.cpp +++ b/tests/auto/core/qframeallocator/tst_qframeallocator.cpp @@ -294,8 +294,8 @@ void tst_QFrameAllocator::containsCheckQFrameChunk() ptrs << c.allocate(16); } - QVERIFY(!c.contains((void *)0xffffffff, 16)); - QVERIFY(!c2.contains((void *)0xffffffff, 16)); + QVERIFY(!c.contains((void *)(quintptr)0xffffffff, 16)); + QVERIFY(!c2.contains((void *)(quintptr)0xffffffff, 16)); QVERIFY(c.contains(ptrs.first(), 16)); QVERIFY(!c2.contains(ptrs.first(), 16)); QVERIFY(c.contains(ptrs.last(), 16)); @@ -305,7 +305,7 @@ void tst_QFrameAllocator::containsCheckQFrameChunk() ptrs << c2.allocate(16); } - QVERIFY(!c.contains((void *)0xffffffff, 16)); + QVERIFY(!c.contains((void *)(quintptr)0xffffffff, 16)); QVERIFY(!c.contains(ptrs.last(), 16)); QVERIFY(c.contains(ptrs.first(), 16)); QVERIFY(c2.contains(ptrs.last(), 16)); |