From defabd265e69fb2cfb07ac2bf265578373604809 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 25 Jul 2023 16:03:16 +0200 Subject: [PATCH] tst_QFont: fix -Wsign-compare Amends 17f8e2c441f2302f1df19053208f77f7fb60e1f1. Pick-to: 6.6 Change-Id: I896027866c11b5e135c39848cefcf45942f1cf99 Reviewed-by: Eskil Abrahamsen Blomfeldt --- tests/auto/gui/text/qfont/tst_qfont.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/gui/text/qfont/tst_qfont.cpp b/tests/auto/gui/text/qfont/tst_qfont.cpp index b4880c1317..2438756bf0 100644 --- a/tests/auto/gui/text/qfont/tst_qfont.cpp +++ b/tests/auto/gui/text/qfont/tst_qfont.cpp @@ -857,11 +857,11 @@ void tst_QFont::featureAccessors() QCOMPARE(font.featureTags().size(), 1); QCOMPARE(font.featureTags().first(), abcdTag); QCOMPARE(QFont::tagToString(font.featureTags().first()), QByteArray("abcd")); - QCOMPARE(font.featureValue(abcdTag), 0xc0ffee); - QCOMPARE(font.featureValue(bcdeTag), 0); + QCOMPARE(font.featureValue(abcdTag), 0xc0ffeeU); + QCOMPARE(font.featureValue(bcdeTag), 0U); font.setFeature(abcdTag, 0xf00d); QCOMPARE(font.featureTags().size(), 1); - QCOMPARE(font.featureValue(abcdTag), 0xf00d); + QCOMPARE(font.featureValue(abcdTag), 0xf00dU); font.setFeature("abcde", 0xcaca0); QVERIFY(!font.isFeatureSet(QFont::stringToTag("abcde"))); QCOMPARE(font.featureTags().size(), 1);