diff options
author | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 11:19:15 +0000 |
---|---|---|
committer | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 11:19:15 +0000 |
commit | e9ad435d7ccd76282c3876afb2c77802728de80b (patch) | |
tree | 18e6f0f2bc24c7f0a0fb75ea7922c937360d7a5d /net/base/net_util.cc | |
parent | f22dff769f04cee574d24c0eb3cf919b5035198a (diff) | |
download | chromium_src-e9ad435d7ccd76282c3876afb2c77802728de80b.zip chromium_src-e9ad435d7ccd76282c3876afb2c77802728de80b.tar.gz chromium_src-e9ad435d7ccd76282c3876afb2c77802728de80b.tar.bz2 |
Original change: http://codereview.chromium.org/4856003/
(landing on behalf of kristianm)
Suppress Android warnings
Android generates warnings for comparing signed and unsigned numbers.
The ones in this CL should be safe.
BUG=62949
TEST=None
Review URL: http://codereview.chromium.org/5035002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66420 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.cc')
-rw-r--r-- | net/base/net_util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc index 20c9577..06432d9 100644 --- a/net/base/net_util.cc +++ b/net/base/net_util.cc @@ -2030,12 +2030,12 @@ bool IPNumberMatchesPrefix(const IPAddressNumber& ip_number, uint16* GetPortFieldFromAddrinfo(const struct addrinfo* info) { DCHECK(info); if (info->ai_family == AF_INET) { - DCHECK_EQ(sizeof(sockaddr_in), info->ai_addrlen); + DCHECK_EQ(sizeof(sockaddr_in), static_cast<size_t>(info->ai_addrlen)); struct sockaddr_in* sockaddr = reinterpret_cast<struct sockaddr_in*>(info->ai_addr); return &sockaddr->sin_port; } else if (info->ai_family == AF_INET6) { - DCHECK_EQ(sizeof(sockaddr_in6), info->ai_addrlen); + DCHECK_EQ(sizeof(sockaddr_in6), static_cast<size_t>(info->ai_addrlen)); struct sockaddr_in6* sockaddr = reinterpret_cast<struct sockaddr_in6*>(info->ai_addr); return &sockaddr->sin6_port; |