Problem with signed 32bits PMEM #525
This commit is contained in:
@@ -1064,11 +1064,11 @@ static s32 lua_pmem(lua_State *lua)
|
||||
|
||||
if(index < TIC_PERSISTENT_SIZE)
|
||||
{
|
||||
s32 val = memory->persistent.data[index];
|
||||
u32 val = memory->persistent.data[index];
|
||||
|
||||
if(top >= 2)
|
||||
{
|
||||
memory->persistent.data[index] = getLuaNumber(lua, 2);
|
||||
memory->persistent.data[index] = lua_tointeger(lua, 2);
|
||||
machine->data->syncPMEM = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user