diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-04-19 23:37:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-04-19 23:37:45 +0000 |
commit | 8bd6d6a4ded4e9f5726effc4ee85f822fe3926e7 (patch) | |
tree | 541eb0338b87dbca8c7d448e21df348369329c5e | |
parent | b3a8f438fca283e1c8a9ddf8597f14bf745abc3a (diff) |
added typecast when converting from long to unsigned short, to prevent compiler warning
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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! */ |