diff options
Diffstat (limited to 'src/log_helper.c')
-rw-r--r-- | src/log_helper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log_helper.c b/src/log_helper.c index 2635e6099..b62593db8 100644 --- a/src/log_helper.c +++ b/src/log_helper.c @@ -114,7 +114,7 @@ rspamd_log_helper_read (gint fd, short what, gpointer ud) lua_createtable (ctx->L, n, 0); for (i = 0; i < n; i ++) { lua_createtable (ctx->L, 2, 0); - lua_pushnumber (ctx->L, sm->results[i].id); + lua_pushinteger (ctx->L, sm->results[i].id); lua_rawseti (ctx->L, -2, 1); lua_pushnumber (ctx->L, sm->results[i].score); lua_rawseti (ctx->L, -2, 2); @@ -125,12 +125,12 @@ rspamd_log_helper_read (gint fd, short what, gpointer ud) pcfg = lua_newuserdata (ctx->L, sizeof (*pcfg)); *pcfg = ctx->cfg; rspamd_lua_setclass (ctx->L, "rspamd{config}", -1); - lua_pushnumber (ctx->L, sm->settings_id); + lua_pushinteger (ctx->L, sm->settings_id); lua_createtable (ctx->L, nextra, 0); for (i = 0; i < nextra; i ++) { lua_createtable (ctx->L, 2, 0); - lua_pushnumber (ctx->L, sm->results[i + n].id); + lua_pushinteger (ctx->L, sm->results[i + n].id); lua_rawseti (ctx->L, -2, 1); lua_pushnumber (ctx->L, sm->results[i + n].score); lua_rawseti (ctx->L, -2, 2); |