Fix another warning when comparing size_t and qsizetype
Amends 07f7ed2badf0cc1972bf6ba15f4c0cde4a773f19. Change-Id: I0644e47e8e9ccd0bcaf074adf99e7481c692b5c1 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
bafe9dfc61
commit
fd879a38cc
@ -2504,7 +2504,7 @@ void tst_Moc::cxx11Enums()
|
|||||||
QCOMPARE(size_t(metaType.sizeOf()), sizeof(char));
|
QCOMPARE(size_t(metaType.sizeOf()), sizeof(char));
|
||||||
QCOMPARE(isUnsigned, !std::is_signed_v<char>);
|
QCOMPARE(isUnsigned, !std::is_signed_v<char>);
|
||||||
} else if (isScoped) {
|
} else if (isScoped) {
|
||||||
QCOMPARE(metaType.sizeOf(), sizeof(int));
|
QCOMPARE(size_t(metaType.sizeOf()), sizeof(int));
|
||||||
QCOMPARE(isUnsigned, !std::is_signed_v<int>);
|
QCOMPARE(isUnsigned, !std::is_signed_v<int>);
|
||||||
} else {
|
} else {
|
||||||
// underlying type is implementation defined
|
// underlying type is implementation defined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user