Fix cast of port number in Winsock

This commit is contained in:
Andrew Nelless 2016-09-12 16:10:24 +01:00
parent d77b5f1176
commit 7e386c0bf9
1 changed files with 1 additions and 1 deletions

View File

@ -805,7 +805,7 @@ ArchNetworkWinsock::setAddrPort(ArchNetAddress addr, int port)
case kINET: { case kINET: {
struct sockaddr_in* ipAddr = struct sockaddr_in* ipAddr =
reinterpret_cast<struct sockaddr_in*>(&addr->m_addr); reinterpret_cast<struct sockaddr_in*>(&addr->m_addr);
ipAddr->sin_port = htons_winsock(reinterpret_cast<u_short>(port)); ipAddr->sin_port = htons_winsock(port);
break; break;
} }