aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-04-18 19:14:25 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-04-18 19:14:25 +0100
commitb75a88aa724c555761f5f4098eed6d28cd51b295 (patch)
tree002500a5a4395cfda38bc206700f8e96a5ca558a
parentbb20989a6384f95a73fd68b0e109fc860e0c7a57 (diff)
url: Fix compiler warning
signed and unsigned type in conditional expression
-rw-r--r--lib/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index afd8f1e6c..811dd886b 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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 ?