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/lua | |
parent | 6b86782ce21caad081d41f54ef10233a8e757189 (diff) | |
download | rspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.tar.gz rspamd-3f96e6a7a317e70b85b32de4aa06681c11d79006.zip |
Fix signness in arithmetic operations.
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_common.c | 3 | ||||
-rw-r--r-- | src/lua/lua_task.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index 1583ee8e3..84f3bb659 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -340,7 +340,8 @@ lua_call_filter (const gchar *function, struct worker_task *task) gint lua_call_chain_filter (const gchar *function, struct worker_task *task, gint *marks, guint number) { - gint result, i; + gint result; + guint i; lua_State *L = task->cfg->lua_state; lua_getglobal (L, function); diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index c08c88491..92c57a9d6 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -1333,7 +1333,7 @@ lua_textpart_get_language (lua_State * L) }; const gchar *sel; - if (part != NULL && part->script > 0 && part->script < G_N_ELEMENTS (languages)) { + if (part != NULL && part->script > 0 && part->script < (gint)G_N_ELEMENTS (languages)) { sel = languages[part->script]; if (*sel != '\0') { lua_pushstring (L, sel); |