diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-04 20:31:24 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-08-04 20:31:24 +0400 |
commit | 3f96e6a7a317e70b85b32de4aa06681c11d79006 (patch) | |
tree | 70343e3fb1a43d29d9c4f454fa47b2dcad6249ad /src/fuzzy.c | |
parent | 6b86782ce21caad081d41f54ef10233a8e757189 (diff) | |
download | rspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.tar.gz rspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.zip |
Fix signness in arithmetic operations.
Diffstat (limited to 'src/fuzzy.c')
-rw-r--r-- | src/fuzzy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fuzzy.c b/src/fuzzy.c index dba76fe69..3901375ca 100644 --- a/src/fuzzy.c +++ b/src/fuzzy.c @@ -256,7 +256,7 @@ fuzzy_hash_t * fuzzy_init (f_str_t * in, memory_pool_t * pool) { fuzzy_hash_t *new; - gint i, repeats = 0; + guint i, repeats = 0; gchar *c = in->begin, last = '\0'; gsize real_len = 0; @@ -337,7 +337,7 @@ fuzzy_init_part (struct mime_text_part *part, memory_pool_t *pool, gsize max_dif if (part->is_utf) { while (c < end) { - if (cur_ex != NULL && cur_ex->pos == c - begin) { + if (cur_ex != NULL && (gint)cur_ex->pos == c - begin) { c += cur_ex->len + 1; cur_offset = g_list_next (cur_offset); if (cur_offset != NULL) { @@ -355,7 +355,7 @@ fuzzy_init_part (struct mime_text_part *part, memory_pool_t *pool, gsize max_dif } else { while (c < end) { - if (cur_ex != NULL && cur_ex->pos == c - begin) { + if (cur_ex != NULL && (gint)cur_ex->pos == c - begin) { c += cur_ex->len + 1; cur_offset = g_list_next (cur_offset); if (cur_offset != NULL) { @@ -394,7 +394,7 @@ fuzzy_init_part (struct mime_text_part *part, memory_pool_t *pool, gsize max_dif if (part->is_utf) { while (c < end) { - if (cur_ex != NULL && cur_ex->pos == c - begin) { + if (cur_ex != NULL && (gint)cur_ex->pos == c - begin) { c += cur_ex->len + 1; cur_offset = g_list_next (cur_offset); if (cur_offset != NULL) { @@ -415,7 +415,7 @@ fuzzy_init_part (struct mime_text_part *part, memory_pool_t *pool, gsize max_dif } else { while (c < end) { - if (cur_ex != NULL && cur_ex->pos == c - begin) { + if (cur_ex != NULL && (gint)cur_ex->pos == c - begin) { c += cur_ex->len + 1; cur_offset = g_list_next (cur_offset); if (cur_offset != NULL) { |