Index: net/proxy/proxy_server.cc |
diff --git a/net/proxy/proxy_server.cc b/net/proxy/proxy_server.cc |
index 0b9ba67d897dd0b37215b1500a19896f8f47c6ae..78d5c3e3491d39b70d76e7e1f6e110cc00ea90a7 100644 |
--- a/net/proxy/proxy_server.cc |
+++ b/net/proxy/proxy_server.cc |
@@ -6,6 +6,7 @@ |
#include <algorithm> |
+#include "base/basictypes.h" |
#include "base/strings/string_util.h" |
#include "net/base/net_util.h" |
#include "net/http/http_util.h" |
@@ -238,7 +239,7 @@ ProxyServer ProxyServer::FromSchemeHostAndPort( |
if (port == -1) |
port = GetDefaultPortForScheme(scheme); |
- host_port_pair = HostPortPair(host, port); |
+ host_port_pair = HostPortPair(host, static_cast<uint16>(port)); |
} |
return ProxyServer(scheme, host_port_pair); |