aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/chartable.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-04 20:31:24 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-04 20:31:24 +0400
commit3f96e6a7a317e70b85b32de4aa06681c11d79006 (patch)
tree70343e3fb1a43d29d9c4f454fa47b2dcad6249ad /src/plugins/chartable.c
parent6b86782ce21caad081d41f54ef10233a8e757189 (diff)
downloadrspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.tar.gz
rspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.zip
Fix signness in arithmetic operations.
Diffstat (limited to 'src/plugins/chartable.c')
-rw-r--r--src/plugins/chartable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c
index cdf7e3e4e..6458b3e2d 100644
--- a/src/plugins/chartable.c
+++ b/src/plugins/chartable.c
@@ -146,7 +146,7 @@ check_part (struct mime_text_part *part, gboolean raw_mode)
}
scc = g_unichar_get_script (c);
- if (scc < G_N_ELEMENTS (scripts)) {
+ if (scc < (gint)G_N_ELEMENTS (scripts)) {
scripts[scc] ++;
}
p1 = g_utf8_next_char (p);