Fix cast of port number in Winsock
This commit is contained in:
parent
d77b5f1176
commit
7e386c0bf9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue