summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2020-06-01 15:38:04 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2020-06-01 15:42:34 +0200
commitfd2b46d8791d4c8253a54e7bbfab4bdbd76e40d7 (patch)
tree35986df4c5d442750378d2c5f3a60af091572e85 /win
parent2e1d10ecacc8ccfc0bda8a199c741ee36df981be (diff)
downloadmariadb-git-fd2b46d8791d4c8253a54e7bbfab4bdbd76e40d7.tar.gz
fix warning
Diffstat (limited to 'win')
-rw-r--r--win/packaging/ca/CustomAction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/packaging/ca/CustomAction.cpp b/win/packaging/ca/CustomAction.cpp
index 1e054c02440..b9d938f4443 100644
--- a/win/packaging/ca/CustomAction.cpp
+++ b/win/packaging/ca/CustomAction.cpp
@@ -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);