mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
added typecast when converting from long to unsigned short, to prevent compiler warning
This commit is contained in:
parent
b3a8f438fc
commit
8bd6d6a4de
@ -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! */
|
||||
|
Loading…
Reference in New Issue
Block a user