summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_trie.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-15 16:20:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-15 16:20:59 +0100
commit938a0dba32a7f1632c3e14b92d986384aff19d7a (patch)
tree32e64f23e9bbed4c9123fb19972406ed6349d1d1 /src/lua/lua_trie.c
parent46d32375ac0fe58156da513670ea7c9bccf0aed2 (diff)
downloadrspamd-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.c4
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",