summaryrefslogtreecommitdiffstats
path: root/tests/auto/concurrent
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-11-30 12:00:46 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-12-01 09:12:10 +0100
commit2885a99c326a784dddb6f6772da65b3fa0b5604f (patch)
treebb2f05e90ca9040b90d57f4eacfb87271229046c /tests/auto/concurrent
parentfe009bd51438877d864d2444f40582508c43c1f3 (diff)
Fix compiler warnings from mixing signed/unsigned ints
Change-Id: I146203dd8b6dddabc0a7cf4b3db8a3fd379fc0c6 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Diffstat (limited to 'tests/auto/concurrent')
-rw-r--r--tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp b/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp
index 8d16133944..dca3fce370 100644
--- a/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp
+++ b/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp
@@ -1805,7 +1805,7 @@ void tst_QtConcurrentMap::stlContainers()
list.push_back(2);
std::list<int> list2 = QtConcurrent::blockingMapped(list, mapper);
- QCOMPARE(list2.size(), 2);
+ QCOMPARE(list2.size(), 2u);
QtConcurrent::mapped(list, mapper).waitForFinished();
@@ -1820,7 +1820,7 @@ void tst_QtConcurrentMap::stlContainersLambda()
std::vector<int> vector2 =
QtConcurrent::blockingMapped(vector, [](const int &i) { return mapper(i); });
- QCOMPARE(vector2.size(), 2);
+ QCOMPARE(vector2.size(), 2u);
std::list<int> list;
list.push_back(1);
@@ -1828,7 +1828,7 @@ void tst_QtConcurrentMap::stlContainersLambda()
std::list<int> list2 =
QtConcurrent::blockingMapped(list, [](const int &i) { return mapper(i); });
- QCOMPARE(list2.size(), 2);
+ QCOMPARE(list2.size(), 2u);
QtConcurrent::mapped(list, [](const int &i) { return mapper(i); }).waitForFinished();