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 */
|
||||
ulen = (psep ?
|
||||
(osep && psep > osep ? osep - login : psep - login) :
|
||||
(osep ? osep - login : len));
|
||||
(size_t)(osep && psep > osep ? osep - login : psep - login) :
|
||||
(osep ? (size_t)(osep - login) : len));
|
||||
plen = (psep ?
|
||||
(osep && osep > psep ? osep - psep : login + len - psep) - 1 : 0);
|
||||
olen = (osep ?
|
||||
|
Loading…
Reference in New Issue
Block a user