Commit fd2b46d8 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

fix warning

parent 2e1d10ec
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment