This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix cast of port number in Winsock

  • Loading branch information...
nlyan committed Sep 12, 2016
1 parent d77b5f1 commit 7e386c0bf9f007f74b3c72c7196ee04696223be4
Showing with 1 addition and 1 deletion.
  1. +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

Please sign in to comment.