Lua - fix memory.readdword function (was returning signed values), same fix as r296 of GENS

This commit is contained in:
adelikat 2011-01-31 15:17:51 +00:00
parent de1374a445
commit 0d4763d281
1 changed files with 1 additions and 1 deletions

View File

@ -1771,7 +1771,7 @@ DEFINE_LUA_FUNCTION(memory_readdword, "address")
int address = luaL_checkinteger(L,1);
unsigned long value = (unsigned long)(_MMU_read32<ARMCPU_ARM9>(address));
lua_settop(L,0);
lua_pushinteger(L, value);
lua_pushnumber(L, value); // can't use pushinteger in this case (out of range)
return 1;
}
DEFINE_LUA_FUNCTION(memory_readdwordsigned, "address")