win, test: fix compilation warning

uv_os_fd_t is HANDLE on Windows, but closesocket needs a SOCKET.

PR-URL: https://github.com/libuv/libuv/pull/534
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Saúl Ibarra Corretgé 2015-09-21 22:25:43 +02:00
parent a59085e140
commit 037a8ab29f

View File

@ -43,7 +43,7 @@ static void close_socket(uv_tcp_t* sock) {
r = uv_fileno((uv_handle_t*)sock, &fd);
ASSERT(r == 0);
#ifdef _WIN32
r = closesocket(fd);
r = closesocket((uv_os_sock_t)fd);
#else
r = close(fd);
#endif