aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 7a32d1728..6c5e56788 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 */