]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2716: Fix Signed/Unsigned build error
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Jul 2009 10:09:22 +0000 (22:09 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Jul 2009 10:09:22 +0000 (22:09 +1200)
Patch for chunked-requests ported to 3.0 was still omitted when same was
merged to 3.1.

src/client_side.cc

index dfd24e696e704c725dd4ccfdbeca67f9cfe7f573..4aab181d8b1df9f6746090202ad87c6fdd11f920 100644 (file)
@@ -2222,7 +2222,7 @@ connKeepReadingIncompleteRequest(ConnStateData * conn)
     // when we read chunked requests, the entire body is buffered
     // XXX: this check ignores header size and its limits.
     if (conn->in.dechunkingState == ConnStateData::chunkParsing)
-        return conn->in.notYetUsed < Config.maxChunkedRequestBodySize;
+        return ((int64_t)conn->in.notYetUsed) < Config.maxChunkedRequestBodySize;
 
     return conn->in.notYetUsed >= Config.maxRequestHeaderSize ? 0 : 1;
 }