fix warning

This commit is contained in:
Vladislav Vaintroub 2020-06-01 15:38:04 +02:00
parent 2e1d10ecac
commit fd2b46d879

View file

@ -318,7 +318,7 @@ static bool IsPortInUse(unsigned short port)
}
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();
in_use = (last_error == WSAEADDRINUSE || last_error == WSAEACCES);