]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix "make check" -Wsign-compare on arm32 broken by 1a51cf7 (#891)
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 23 Aug 2021 13:35:39 +0000 (13:35 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 24 Aug 2021 15:48:57 +0000 (15:48 +0000)
MemBuf::contentSize() returns mb_size_t which is signed.

src/tests/testEvent.cc

index 888cb0e2949582f819c1eb9cf9f58e4c272667d6..2028c28962714a186a603703c499228e6a7f2aa7 100644 (file)
@@ -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]);