From 50641db2d11ad8a2228f7938d851e52decb71a9b Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 1 Jun 2020 15:38:04 +0200 Subject: [PATCH] fix warning --- win/packaging/ca/CustomAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/packaging/ca/CustomAction.cpp b/win/packaging/ca/CustomAction.cpp index 48d56ba1183..d3bea12ffd9 100644 --- a/win/packaging/ca/CustomAction.cpp +++ b/win/packaging/ca/CustomAction.cpp @@ -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);