From 3f96e6a7a317e70b85b32de4aa06681c11d79006 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 4 Aug 2011 20:31:24 +0400 Subject: Fix signness in arithmetic operations. --- src/html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/html.c') diff --git a/src/html.c b/src/html.c index 9a6541610..04dfdfa89 100644 --- a/src/html.c +++ b/src/html.c @@ -685,7 +685,7 @@ check_phishing (struct worker_task *task, struct uri *href_url, const gchar *url break; } } - rspamd_strlcpy (tagbuf, c, MIN (sizeof(tagbuf), p - c + 1)); + rspamd_strlcpy (tagbuf, c, MIN ((gint)sizeof(tagbuf), p - c + 1)); if ((tag = get_tag_by_name (tagbuf)) != NULL) { if (tag->id == id) { break; @@ -797,7 +797,7 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i } len = 0; p = c; - while (*p && p - tag_text < tag_len) { + while (*p && (guint)(p - tag_text) < tag_len) { if (got_double_quote) { if (*p == '"') { break; -- cgit v1.2.3