From fd879a38cc31c47097f7847ea1352a2572890e8c Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Fri, 7 Apr 2023 11:55:43 +0200 Subject: Fix another warning when comparing size_t and qsizetype Amends 07f7ed2badf0cc1972bf6ba15f4c0cde4a773f19. Change-Id: I0644e47e8e9ccd0bcaf074adf99e7481c692b5c1 Reviewed-by: Ulf Hermann --- tests/auto/tools/moc/tst_moc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index 15bc264917..40d42a662b 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); } else if (isScoped) { - QCOMPARE(metaType.sizeOf(), sizeof(int)); + QCOMPARE(size_t(metaType.sizeOf()), sizeof(int)); QCOMPARE(isUnsigned, !std::is_signed_v); } else { // underlying type is implementation defined -- cgit v1.2.3