mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
url: Fix compiler warning
signed and unsigned type in conditional expression
This commit is contained in:
parent
bb20989a63
commit
b75a88aa72
@ -4490,8 +4490,8 @@ static CURLcode parse_login_details(const char *login, const size_t len,
|
|||||||
|
|
||||||
/* Calculate the portion lengths */
|
/* Calculate the portion lengths */
|
||||||
ulen = (psep ?
|
ulen = (psep ?
|
||||||
(osep && psep > osep ? osep - login : psep - login) :
|
(size_t)(osep && psep > osep ? osep - login : psep - login) :
|
||||||
(osep ? osep - login : len));
|
(osep ? (size_t)(osep - login) : len));
|
||||||
plen = (psep ?
|
plen = (psep ?
|
||||||
(osep && osep > psep ? osep - psep : login + len - psep) - 1 : 0);
|
(osep && osep > psep ? osep - psep : login + len - psep) - 1 : 0);
|
||||||
olen = (osep ?
|
olen = (osep ?
|
||||||
|
Loading…
Reference in New Issue
Block a user