diff options
-rw-r--r-- | lib/hostthre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostthre.c b/lib/hostthre.c index be8ab20a8..a13159f5f 100644 --- a/lib/hostthre.c +++ b/lib/hostthre.c @@ -469,7 +469,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn, hostname, port, Curl_strerror(conn,WSAGetLastError())); return NULL; } - return Curl_he2ai(h, port); + return Curl_he2ai(h, (unsigned short)port); } #endif /* CURLRES_IPV4 */ |