diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-15 16:20:41 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-08-15 16:20:59 +0100 |
commit | 938a0dba32a7f1632c3e14b92d986384aff19d7a (patch) | |
tree | 32e64f23e9bbed4c9123fb19972406ed6349d1d1 /src/log_helper.c | |
parent | 46d32375ac0fe58156da513670ea7c9bccf0aed2 (diff) | |
download | rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.tar.gz rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.zip |
[Minor] Better Lua 5.3 compatibility
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); |