diff --git a/lib/hostip.c b/lib/hostip.c index 7a32d1728ed66c98b7ed2243dc2c25698d46ce17..6c5e56788561720fd44f7c9ef7adc132974efa40 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -555,6 +555,6 @@ Curl_addrinfo *Curl_addrinfo_copy(void *org, int port) { struct hostent *orig = org; - return Curl_he2ai(orig, port); + return Curl_he2ai(orig, (unsigned short)port); } #endif /* CURLRES_ADDRINFO_COPY */