diff --git a/tests/auto/algorithm/tst_algorithm.cpp b/tests/auto/algorithm/tst_algorithm.cpp index 83b8505bfba..b2d031e7a11 100644 --- a/tests/auto/algorithm/tst_algorithm.cpp +++ b/tests/auto/algorithm/tst_algorithm.cpp @@ -273,7 +273,7 @@ void tst_Algorithm::transform() std::vector v({1, 2, 3, 4}); const std::vector trans = Utils::transform>(v, [](int i) { return new Struct(i); }); - QCOMPARE(trans.size(), 4ul); + QCOMPARE(trans.size(), static_cast::size_type>(4ul)); QCOMPARE(trans.at(0)->member, 1); QCOMPARE(trans.at(1)->member, 2); QCOMPARE(trans.at(2)->member, 3); @@ -287,7 +287,7 @@ void tst_Algorithm::transform() = Utils::transform>>(v, [](int i) { return new Struct(i); }); - QCOMPARE(trans.size(), 4ul); + QCOMPARE(trans.size(), static_cast::size_type>(4ul)); QCOMPARE(trans.at(0)->member, 1); QCOMPARE(trans.at(1)->member, 2); QCOMPARE(trans.at(2)->member, 3);