From: Alex Rousskov Date: Mon, 23 Aug 2021 13:35:39 +0000 (+0000) Subject: Fix "make check" -Wsign-compare on arm32 broken by 1a51cf7 (#891) X-Git-Tag: SQUID_6_0_1~294 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4efdc659653fbba3827c320d0dc4e6a647f54081;p=thirdparty%2Fsquid.git Fix "make check" -Wsign-compare on arm32 broken by 1a51cf7 (#891) MemBuf::contentSize() returns mb_size_t which is signed. --- diff --git a/src/tests/testEvent.cc b/src/tests/testEvent.cc index 888cb0e294..2028c28962 100644 --- a/src/tests/testEvent.cc +++ b/src/tests/testEvent.cc @@ -91,7 +91,7 @@ testEvent::testDump() /* loop over the strings, showing exactly where they differ (if at all) */ printf("Actual Text:\n"); /* TODO: these should really be just [] lookups, but String doesn't have those here yet. */ - for (unsigned int i = 0; i < result.contentSize(); ++i) { + for (size_t i = 0; i < size_t(result.contentSize()); ++i) { CPPUNIT_ASSERT(expect.content()[i]); CPPUNIT_ASSERT(result.content()[i]);