Permalink
Browse files
Fix cast of port number in Winsock
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/lib/arch/win32/ArchNetworkWinsock.cpp
|
|
@@ -805,7 +805,7 @@ ArchNetworkWinsock::setAddrPort(ArchNetAddress addr, int port) |
|
|
case kINET: {
|
|
|
struct sockaddr_in* ipAddr =
|
|
|
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;
|
|
|
}
|
|
|
|
|
|
|
0 comments on commit
7e386c0