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/lua/lua_trie.c | |
parent | 46d32375ac0fe58156da513670ea7c9bccf0aed2 (diff) | |
download | rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.tar.gz rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.zip |
[Minor] Better Lua 5.3 compatibility
Diffstat (limited to 'src/lua/lua_trie.c')
-rw-r--r-- | src/lua/lua_trie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_trie.c b/src/lua/lua_trie.c index 362564ce8..16a8ace0c 100644 --- a/src/lua/lua_trie.c +++ b/src/lua/lua_trie.c @@ -156,8 +156,8 @@ lua_trie_callback (struct rspamd_multipattern *mp, /* Function */ lua_pushvalue (L, 3); - lua_pushnumber (L, strnum + 1); - lua_pushnumber (L, textpos); + lua_pushinteger (L, strnum + 1); + lua_pushinteger (L, textpos); if (lua_pcall (L, 2, 1, 0) != 0) { msg_info ("call to trie callback has failed: %s", |