Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: net/base/net_util.cc

Issue 5035002: Original change: http://codereview.chromium.org/4856003/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/file_util_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_util.cc
diff --git a/net/base/net_util.cc b/net/base/net_util.cc
index 20c9577f38aab8c84eb5094d410f8f891c746f59..06432d9178cde1de34fefaa03e486e693a914a98 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;
« no previous file with comments | « base/file_util_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698