summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/plugin
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-26 17:04:14 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-26 18:06:21 +0200
commitd1fd2ff11f53be850eeb7f5f4699ea4a8966f164 (patch)
tree55a7c337e2ae8be0df5f077ca8e895c195f9efb3 /tests/auto/corelib/plugin
parentd96193b0ec79e675d50a20054beaa1dfb825790d (diff)
Fix warning when comparing qsizetype to result of sizeof
warning: comparison of integers of different signs: 'qsizetype' (aka 'long long') and 'unsigned long' Change-Id: I03acb1f7aed782169a0a42cd8afc84b85991cd1e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/plugin')
-rw-r--r--tests/auto/corelib/plugin/qpluginloader/tst_qpluginloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/plugin/qpluginloader/tst_qpluginloader.cpp b/tests/auto/corelib/plugin/qpluginloader/tst_qpluginloader.cpp
index 8d548f5260..f8a6450f54 100644
--- a/tests/auto/corelib/plugin/qpluginloader/tst_qpluginloader.cpp
+++ b/tests/auto/corelib/plugin/qpluginloader/tst_qpluginloader.cpp
@@ -384,7 +384,7 @@ void tst_QPluginLoader::loadMachO()
return;
QVERIFY(pos > 0);
- QVERIFY(len >= sizeof(void*));
+ QVERIFY(size_t(len) >= sizeof(void*));
QVERIFY(pos + long(len) < data.size());
QCOMPARE(pos & (sizeof(void*) - 1), 0UL);