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/trie.c | |
parent | 6b86782ce21caad081d41f54ef10233a8e757189 (diff) | |
download | rspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.tar.gz rspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.zip |
Fix signness in arithmetic operations.
Diffstat (limited to 'src/trie.c')
-rw-r--r-- | src/trie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trie.c b/src/trie.c index 21743d856..2a22fe6fa 100644 --- a/src/trie.c +++ b/src/trie.c @@ -54,7 +54,7 @@ rspamd_trie_create (gboolean icase) * Insert a single character as level of binary trie */ static struct rspamd_trie_state * -rspamd_trie_insert_char (rspamd_trie_t *trie, gint depth, struct rspamd_trie_state *q, gchar c) +rspamd_trie_insert_char (rspamd_trie_t *trie, guint depth, struct rspamd_trie_state *q, gchar c) { struct rspamd_trie_match *m; @@ -103,7 +103,7 @@ rspamd_trie_insert (rspamd_trie_t *trie, const gchar *pattern, gint pattern_id) const guchar *p = pattern; struct rspamd_trie_state *q, *q1, *r; struct rspamd_trie_match *m, *n; - gint i, depth = 0; + guint i, depth = 0; gchar c; /* Insert pattern to the trie */ |