Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Jun 1, 2020
1 parent 02f6855 commit 50641db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win/packaging/ca/CustomAction.cpp
Expand Up @@ -317,7 +317,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);
Expand Down

0 comments on commit 50641db

Please sign in to comment.