mirror of
https://github.com/curl/curl.git
synced 2026-08-26 14:33:32 +03:00
Fix compiler warning: conversion from "int" to "unsigned short" may lose significant bits
This commit is contained in:
parent
e8d3710aff
commit
5c8fc7dce9
3 changed files with 4 additions and 4 deletions
|
|
@ -3101,7 +3101,7 @@ static CURLcode setup_connection_internals(struct SessionHandle *data,
|
|||
}
|
||||
|
||||
conn->port = p->defport;
|
||||
conn->remote_port = p->defport;
|
||||
conn->remote_port = (unsigned short)p->defport;
|
||||
conn->protocol |= p->protocol;
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue