From 299d0f0e4f79d3c514f4cc18f6665d2f6ad24332 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 13 Dec 2017 14:38:19 +0100 Subject: [PATCH] Tests: Fix compile with MSVC2015 Change-Id: Ic9a1839325febeb6bde0b656dce88342f3955c53 Reviewed-by: Eike Ziller --- tests/auto/algorithm/tst_algorithm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);