aboutsummaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.c b/src/url.c
index ade68ea1c..4936d9353 100644
--- a/src/url.c
+++ b/src/url.c
@@ -818,7 +818,7 @@ parse_uri (struct uri *uri, gchar *uristring, memory_pool_t * pool)
return URI_ERRNO_NO_PORT_COLON;
/* We only use 8 bits for portlen so better check */
- if (uri->portlen != port_end - host_end)
+ if ((gint)uri->portlen != port_end - host_end)
return URI_ERRNO_INVALID_PORT;
/* test if port is number */