summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 17:44:46 +0000
committermmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-21 17:44:46 +0000
commit1fd62e73130e1c73e0305fe89a73ccdc2ed250d8 (patch)
tree2481466f3c3312ebd81c7c8eb5524fb312c313f7
parent0d9b46841a609c598ca8ded416e2adfca2be9d48 (diff)
downloadchromium_src-1fd62e73130e1c73e0305fe89a73ccdc2ed250d8.zip
chromium_src-1fd62e73130e1c73e0305fe89a73ccdc2ed250d8.tar.gz
chromium_src-1fd62e73130e1c73e0305fe89a73ccdc2ed250d8.tar.bz2
Fix signedness warnings in http_response_headers
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1159 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/http/http_response_headers.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
index 7ec62a3..f0c5e46 100644
--- a/net/http/http_response_headers.cc
+++ b/net/http/http_response_headers.cc
@@ -510,7 +510,7 @@ size_t HttpResponseHeaders::FindHeader(size_t from,
continue;
const string::const_iterator& name_begin = parsed_[i].name_begin;
const string::const_iterator& name_end = parsed_[i].name_end;
- if ((name_end - name_begin) == search.size() &&
+ if (static_cast<size_t>(name_end - name_begin) == search.size() &&
std::equal(name_begin, name_end, search.begin(),
CaseInsensitiveCompare<char>()))
return i;
@@ -831,7 +831,7 @@ bool HttpResponseHeaders::GetMaxAgeValue(TimeDelta* result) const {
string value;
const char kMaxAgePrefix[] = "max-age=";
- const int kMaxAgePrefixLen = arraysize(kMaxAgePrefix) - 1;
+ const size_t kMaxAgePrefixLen = arraysize(kMaxAgePrefix) - 1;
void* iter = NULL;
while (EnumerateHeader(&iter, name, &value)) {
@@ -882,7 +882,7 @@ bool HttpResponseHeaders::GetTimeValuedHeader(const std::string& name,
bool HttpResponseHeaders::IsKeepAlive() const {
const char kPrefix[] = "HTTP/1.0";
- const int kPrefixLen = arraysize(kPrefix) - 1;
+ const size_t kPrefixLen = arraysize(kPrefix) - 1;
if (raw_headers_.size() < kPrefixLen) // Lacking a status line?
return false;