]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix signed/unsigned comparison compile error on 64-bit
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Feb 2015 03:55:39 +0000 (19:55 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Feb 2015 03:55:39 +0000 (19:55 -0800)
src/http/one/Parser.cc

index b5f9770811c7c777a464884112546b0c3eada4bc..7d74f9dd2181b815f47ab1e6ada5d019f07b9131 100644 (file)
@@ -51,7 +51,7 @@ Http::One::Parser::grabMimeBlock(const char *which, const size_t limit)
          *       (ie, none, so don't try parsing em)
          */
         // XXX: c_str() reallocates. performance regression.
-        if (int64_t mimeHeaderBytes = headersEnd(buf_.c_str(), buf_.length())) {
+        if (SBuf::size_type mimeHeaderBytes = headersEnd(buf_.c_str(), buf_.length())) {
 
             // Squid could handle these headers, but admin does not want to
             if (firstLineSize() + mimeHeaderBytes >= limit) {