fix warning

This commit is contained in:
Vladislav Vaintroub 2020-06-01 15:38:04 +02:00
parent 02f68552a4
commit 50641db2d1

View file

@ -317,7 +317,7 @@ static bool IsPortInUse(unsigned short port)
} }
bool in_use = false; bool in_use = false;
if (bind(ip_sock, a->ai_addr, a->ai_addrlen) == SOCKET_ERROR) if (bind(ip_sock, a->ai_addr, (int)a->ai_addrlen) == SOCKET_ERROR)
{ {
DWORD last_error = WSAGetLastError(); DWORD last_error = WSAGetLastError();
in_use = (last_error == WSAEADDRINUSE || last_error == WSAEACCES); in_use = (last_error == WSAEADDRINUSE || last_error == WSAEACCES);