]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Range::size() returned value type: Fix comparison with signed/unsigned types
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 1 Feb 2011 12:00:45 +0000 (14:00 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 1 Feb 2011 12:00:45 +0000 (14:00 +0200)
src/client_side.cc

index 65a9563b9c643df7aa7748165cffcdd61711fee1..5e18b7b2c2b0a72d046cb5523ae9025026ee21e0 100644 (file)
@@ -1055,7 +1055,7 @@ ClientSocketContext::packRange(StoreIOBuffer const &source, MemBuf * mb)
              * intersection of "have" and "need" ranges must not be empty
              */
             assert(http->out.offset < i->currentSpec()->offset + i->currentSpec()->length);
-            assert(http->out.offset + available.size() > (uint64_t)i->currentSpec()->offset);
+            assert(http->out.offset + (int64_t)available.size() > i->currentSpec()->offset);
 
             /*
              * put boundary and headers at the beginning of a range in a