From: Amos Jeffries Date: Fri, 27 Feb 2015 03:55:39 +0000 (-0800) Subject: Fix signed/unsigned comparison compile error on 64-bit X-Git-Tag: merge-candidate-3-v1~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6a88856504b22d3bf34344b6bc456c2dd3c179a;p=thirdparty%2Fsquid.git Fix signed/unsigned comparison compile error on 64-bit --- diff --git a/src/http/one/Parser.cc b/src/http/one/Parser.cc index b5f9770811..7d74f9dd21 100644 --- a/src/http/one/Parser.cc +++ b/src/http/one/Parser.cc @@ -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) {