diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-26 21:25:06 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-27 07:28:25 +0000 |
commit | 27f78b9da544df169c75957bd287dd4a4d643c9d (patch) | |
tree | dec77552b4aed1fbcc98e6649f56f68593a07e7d /tests | |
parent | c2dbc268937314e4a3825255a88a0e39bb8673a4 (diff) |
Fix compiler warning from comparing signed to unsigned
std::vector::size returns size_t, which is unsigned.
Change-Id: I81ba3d58a1bd3a3c3d90c911263a5c0df0441b16
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp b/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp index 449acf6a78..8d16133944 100644 --- a/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp +++ b/tests/auto/concurrent/qtconcurrentmap/tst_qtconcurrentmap.cpp @@ -1798,7 +1798,7 @@ void tst_QtConcurrentMap::stlContainers() vector.push_back(2); std::vector<int> vector2 = QtConcurrent::blockingMapped(vector, mapper); - QCOMPARE(vector2.size(), 2); + QCOMPARE(vector2.size(), 2u); std::list<int> list; list.push_back(1); |