From 991df1a5135b9c133a3eed496c5189a8cae74aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20L=C3=B6hning?= Date: Wed, 14 Aug 2024 10:54:55 +0200 Subject: [PATCH] QHttp2Connection: Avoid warning about different signedness (...)/qtbase/src/testlib/qtestcase.h:626:34: warning: comparison of integers of different signs: 'const long long' and 'const unsigned long' [-Wsign-compare] return compare_helper(t1 == t2, "Compared values are not the same", ~~ ^ ~~ (...)/home/qtrob/dev/src/qt-dev_08.14-base_imageformats_svg/qtbase/tests/auto/network/access/qhttp2connection/tst_qhttp2connection.cpp:490:9: note: in instantiation of function template specialization 'QTest::qCompare' requested here QCOMPARE(writtenN, buffer.size()); ^ (...)/home/qtrob/dev/src/qt-dev_08.14-base_imageformats_svg/qtbase/src/testlib/qtestcase.h:83:17: note: expanded from macro 'QCOMPARE' if (!QTest::qCompare(actual, expected, #actual, #expected, __FILE__, __LINE__))\ ^ Change-Id: I4c09dbbd3105b3a760a9ecde53dd0e8c26c1626e Reviewed-by: Matthias Rauter --- .../network/access/qhttp2connection/tst_qhttp2connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/network/access/qhttp2connection/tst_qhttp2connection.cpp b/tests/auto/network/access/qhttp2connection/tst_qhttp2connection.cpp index 94feac98e7b..4352cd427e5 100644 --- a/tests/auto/network/access/qhttp2connection/tst_qhttp2connection.cpp +++ b/tests/auto/network/access/qhttp2connection/tst_qhttp2connection.cpp @@ -487,7 +487,7 @@ void tst_QHttp2Connection::testBadFrameSize() buffer[2] = size; auto writtenN = connection->getSocket()->write(reinterpret_cast(&buffer[0]), buffer.size()); - QCOMPARE(writtenN, buffer.size()); + QCOMPARE(writtenN, qint64(buffer.size())); } QCOMPARE(rstClientSpy.wait(), rst_received);