diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-04-07 11:55:43 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-04-18 00:10:56 +0200 |
| commit | fd879a38cc31c47097f7847ea1352a2572890e8c (patch) | |
| tree | 706e16bea0a35570d048d417ddd6bc25e7ac0d26 | |
| parent | bafe9dfc61ce4ed4640b9c7903ab982753cba040 (diff) | |
Fix another warning when comparing size_t and qsizetype
Amends 07f7ed2badf0cc1972bf6ba15f4c0cde4a773f19.
Change-Id: I0644e47e8e9ccd0bcaf074adf99e7481c692b5c1
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
| -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 15bc2649174..40d42a662b1 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -2504,7 +2504,7 @@ void tst_Moc::cxx11Enums() QCOMPARE(size_t(metaType.sizeOf()), sizeof(char)); QCOMPARE(isUnsigned, !std::is_signed_v<char>); } else if (isScoped) { - QCOMPARE(metaType.sizeOf(), sizeof(int)); + QCOMPARE(size_t(metaType.sizeOf()), sizeof(int)); QCOMPARE(isUnsigned, !std::is_signed_v<int>); } else { // underlying type is implementation defined |
