Replace lua_pushnumber with lua_pushinteger in LuaApi.cpp

develop
lethosor 2016-08-22 23:18:08 -04:00
parent 5d87a10511
commit 1dab45ffed
1 changed files with 3 additions and 3 deletions

@ -2347,7 +2347,7 @@ static int internal_getAddress(lua_State *L)
const char *name = luaL_checkstring(L, 1);
uintptr_t addr = Core::getInstance().vinfo->getAddress(name);
if (addr)
lua_pushnumber(L, addr);
lua_pushinteger(L, addr);
else
lua_pushnil(L);
return 1;
@ -2413,9 +2413,9 @@ static int internal_getMemRanges(lua_State *L)
for(size_t i = 0; i < ranges.size(); i++)
{
lua_newtable(L);
lua_pushnumber(L, (uintptr_t)ranges[i].start);
lua_pushinteger(L, (uintptr_t)ranges[i].start);
lua_setfield(L, -2, "start_addr");
lua_pushnumber(L, (uintptr_t)ranges[i].end);
lua_pushinteger(L, (uintptr_t)ranges[i].end);
lua_setfield(L, -2, "end_addr");
lua_pushstring(L, ranges[i].name);
lua_setfield(L, -2, "name");