From: Christos Tsantilas Date: Tue, 1 Feb 2011 12:00:45 +0000 (+0200) Subject: Range::size() returned value type: Fix comparison with signed/unsigned types X-Git-Tag: take03^2~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13c2229a9db0959371be2c1a67b62a0df8e9ad40;p=thirdparty%2Fsquid.git Range::size() returned value type: Fix comparison with signed/unsigned types --- diff --git a/src/client_side.cc b/src/client_side.cc index 65a9563b9c..5e18b7b2c2 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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