util/lua-common: use lua_pushnumber for SCFileInfo

(cherry picked from commit b3f447a0df)
pull/6411/head
Juliana Fajardini 5 years ago committed by Shivani Bhardwaj
parent 2d36eefe86
commit 86175149cc

@ -753,10 +753,10 @@ static int LuaCallbackFileInfoPushToStackFromFile(lua_State *luastate, const Fil
char *sha256ptr = NULL;
#endif
lua_pushnumber(luastate, file->file_store_id);
lua_pushnumber(luastate, file->txid);
lua_pushinteger(luastate, file->file_store_id);
lua_pushinteger(luastate, file->txid);
lua_pushlstring(luastate, (char *)file->name, file->name_len);
lua_pushnumber(luastate, FileTrackedSize(file));
lua_pushinteger(luastate, FileTrackedSize(file));
lua_pushstring (luastate,
#ifdef HAVE_MAGIC
file->magic

Loading…
Cancel
Save