From: Daniel Stenberg Date: Tue, 19 Apr 2005 23:37:45 +0000 (+0000) Subject: added typecast when converting from long to unsigned short, to prevent compiler warning X-Git-Tag: curl-7_14_0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bd6d6a4ded4e9f5726effc4ee85f822fe3926e7;p=thirdparty%2Fcurl.git added typecast when converting from long to unsigned short, to prevent compiler warning --- diff --git a/lib/url.c b/lib/url.c index 12597311a9..e75c29043c 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3087,7 +3087,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, if(data->set.use_port && data->state.allow_port) { /* if set, we use this and ignore the port possibly given in the URL */ - conn->remote_port = data->set.use_port; + conn->remote_port = (unsigned short)data->set.use_port; if(tmp) *tmp = '\0'; /* cut off the name there anyway - if there was a port number - since the port number is to be ignored! */