diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-03-31 23:08:53 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-04-03 17:12:18 +0200 |
commit | 07f7ed2badf0cc1972bf6ba15f4c0cde4a773f19 (patch) | |
tree | 51d8aceabdf5d652b79c4b6d6f728727c0c9f934 /tests/auto/tools/moc/tst_moc.cpp | |
parent | 2bffce5719c49e2aac0217f97cf48171683ee1ee (diff) |
Fix warning when comparing size_t with qsizetype
Change-Id: Id8e7ae20aea99f2acb03b665484615bf7f932873
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/tools/moc/tst_moc.cpp')
-rw-r--r-- | tests/auto/tools/moc/tst_moc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index 6a2962d609..15bc264917 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -2501,7 +2501,7 @@ void tst_Moc::cxx11Enums() const QMetaType metaType = metaEnum.metaType(); const bool isUnsigned = metaType.flags() & QMetaType::IsUnsignedEnumeration; if (isTyped) { - QCOMPARE(metaType.sizeOf(), sizeof(char)); + QCOMPARE(size_t(metaType.sizeOf()), sizeof(char)); QCOMPARE(isUnsigned, !std::is_signed_v<char>); } else if (isScoped) { QCOMPARE(metaType.sizeOf(), sizeof(int)); |