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/controller.c | |
parent | 46d32375ac0fe58156da513670ea7c9bccf0aed2 (diff) | |
download | rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.tar.gz rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.zip |
[Minor] Better Lua 5.3 compatibility
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controller.c b/src/controller.c index 05d3b238e..5591db264 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1525,8 +1525,8 @@ rspamd_controller_handle_lua_history (lua_State *L, pconn_ent = lua_newuserdata (L, sizeof (*pconn_ent)); *pconn_ent = conn_ent; rspamd_lua_setclass (L, "rspamd{csession}", -1); - lua_pushnumber (L, from); - lua_pushnumber (L, to); + lua_pushinteger (L, from); + lua_pushinteger (L, to); lua_pushboolean (L, reset); if (lua_pcall (L, 5, 0, 0) != 0) { |