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_config.c | |
parent | 46d32375ac0fe58156da513670ea7c9bccf0aed2 (diff) | |
download | rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.tar.gz rspamd-938a0dba32a7f1632c3e14b92d986384aff19d7a.zip |
[Minor] Better Lua 5.3 compatibility
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r-- | src/lua/lua_config.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index d7af3956f..815b09e63 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -939,7 +939,7 @@ lua_config_get_all_opt (lua_State * L) i = 1; LL_FOREACH (obj, cur) { - lua_pushnumber (L, i++); + lua_pushinteger (L, i++); ucl_object_push_lua (L, cur, true); lua_settable (L, -3); } @@ -1735,7 +1735,7 @@ lua_config_register_symbol (lua_State * L) return luaL_error (L, "invalid arguments"); } - lua_pushnumber (L, ret); + lua_pushinteger (L, ret); return 1; } @@ -1809,7 +1809,7 @@ lua_config_register_symbols (lua_State *L) } } - lua_pushnumber (L, ret); + lua_pushinteger (L, ret); return 1; } @@ -1838,7 +1838,7 @@ lua_config_register_virtual_symbol (lua_State * L) } } - lua_pushnumber (L, ret); + lua_pushinteger (L, ret); return 1; } @@ -1879,7 +1879,7 @@ lua_config_register_callback_symbol (lua_State * L) lua_type (L, top + 1) == LUA_TSTRING); } - lua_pushnumber (L, ret); + lua_pushinteger (L, ret); return 1; } @@ -1922,7 +1922,7 @@ lua_config_register_callback_symbol_priority (lua_State * L) lua_type (L, top + 2) == LUA_TSTRING); } - lua_pushnumber (L, ret); + lua_pushinteger (L, ret); return 1; } @@ -2912,7 +2912,7 @@ lua_config_get_symbols_count (lua_State *L) return luaL_error (L, "invalid arguments"); } - lua_pushnumber (L, res); + lua_pushinteger (L, res); return 1; } @@ -3092,7 +3092,7 @@ lua_config_get_symbol_stat (lua_State *L) lua_pushnumber (L, tm); lua_settable (L, -3); lua_pushstring (L, "hits"); - lua_pushnumber (L, hits); + lua_pushinteger (L, hits); lua_settable (L, -3); } } |