Index: ppapi/shared_impl/private/net_address_private_impl.cc |
diff --git a/ppapi/shared_impl/private/net_address_private_impl.cc b/ppapi/shared_impl/private/net_address_private_impl.cc |
index 19dae3c8b180021cf3da23253c53feb3913f8ebc..04baf96fda2ccc54a00cee452cc9f2b5d103d095 100644 |
--- a/ppapi/shared_impl/private/net_address_private_impl.cc |
+++ b/ppapi/shared_impl/private/net_address_private_impl.cc |
@@ -451,7 +451,7 @@ bool NetAddressPrivateImpl::SockaddrToNetAddress( |
// static |
bool NetAddressPrivateImpl::IPEndPointToNetAddress( |
const std::vector<unsigned char>& address, |
- int port, |
+ uint16 port, |
PP_NetAddress_Private* addr) { |
if (!addr) |
return false; |
@@ -461,14 +461,14 @@ bool NetAddressPrivateImpl::IPEndPointToNetAddress( |
case kIPv4AddressSize: { |
net_addr->is_valid = true; |
net_addr->is_ipv6 = false; |
- net_addr->port = static_cast<uint16_t>(port); |
+ net_addr->port = port; |
std::copy(address.begin(), address.end(), net_addr->address); |
break; |
} |
case kIPv6AddressSize: { |
net_addr->is_valid = true; |
net_addr->is_ipv6 = true; |
- net_addr->port = static_cast<uint16_t>(port); |
+ net_addr->port = port; |
std::copy(address.begin(), address.end(), net_addr->address); |
break; |
} |
@@ -484,7 +484,7 @@ bool NetAddressPrivateImpl::IPEndPointToNetAddress( |
bool NetAddressPrivateImpl::NetAddressToIPEndPoint( |
const PP_NetAddress_Private& addr, |
std::vector<unsigned char>* address, |
- int* port) { |
+ uint16* port) { |
if (!address || !port) |
return false; |