From a070e5a10a3084bf75472177bedfacc612c25071 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 7 Apr 2023 16:38:50 +0100 Subject: [Feature] Finish all features of dkim_keygen in Lua --- src/lua/lua_text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/lua_text.c') diff --git a/src/lua/lua_text.c b/src/lua/lua_text.c index b6f0948c3..bafab3c08 100644 --- a/src/lua/lua_text.c +++ b/src/lua/lua_text.c @@ -1118,12 +1118,12 @@ lua_text_save_in_file (lua_State *L) fname = luaL_checkstring (L, 2); if (lua_type (L, 3) == LUA_TNUMBER) { - mode = lua_tonumber (L, 3); + mode = lua_tointeger(L, 3); } } else if (lua_type (L, 2) == LUA_TNUMBER) { /* Created fd */ - fd = lua_tonumber (L, 2); + fd = lua_tointeger (L, 2); } if (fd == -1) { -- cgit v1.2.3