Fix another warning when comparing size_t and qsizetype

Amends 07f7ed2bad.

Change-Id: I0644e47e8e9ccd0bcaf074adf99e7481c692b5c1
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
bb10
Volker Hilsheimer 2023-04-07 11:55:43 +02:00
parent bafe9dfc61
commit fd879a38cc
1 changed files with 1 additions and 1 deletions

View File

@ -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