Problem with signed 32bits PMEM #525

This commit is contained in:
BADIM-PC\Vadim committed 2018-02-16 13:38:11 +03:00
1 parent c1ba0d1389
commit c419c5297d
4 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -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;
}