diff options
Diffstat (limited to 'tests/auto/corelib/tools')
-rw-r--r-- | tests/auto/corelib/tools/qhash/tst_qhash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qhash/tst_qhash.cpp b/tests/auto/corelib/tools/qhash/tst_qhash.cpp index 9ed1ce67aa..fac4ac7007 100644 --- a/tests/auto/corelib/tools/qhash/tst_qhash.cpp +++ b/tests/auto/corelib/tools/qhash/tst_qhash.cpp @@ -595,7 +595,7 @@ void tst_QHash::erase_edge_case() for (qsizetype i = 0; i < numBuckets * 4 && index < 2; ++i) { const size_t hash = qHash(i, QHashSeed::globalSeed()); const size_t bucketForHash = QHashPrivate::GrowthPolicy::bucketForHash(numBuckets, hash); - if (bucketForHash == numBuckets - 1) + if (qsizetype(bucketForHash) == numBuckets - 1) keys[index++] = i; } QCOMPARE(index, 2); // Sanity check. If this fails then the test needs an update! |