diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-04-18 19:14:25 +0100 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-04-18 19:14:25 +0100 |
commit | b75a88aa724c555761f5f4098eed6d28cd51b295 (patch) | |
tree | 002500a5a4395cfda38bc206700f8e96a5ca558a | |
parent | bb20989a6384f95a73fd68b0e109fc860e0c7a57 (diff) |
url: Fix compiler warning
signed and unsigned type in conditional expression
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ? |