mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 20:59:00 +00:00
SCI: Add warning when dereferencing non-aligned stack pointer
svn-id: r44386
This commit is contained in:
parent
f7d7140876
commit
933bdcf829
@ -277,6 +277,8 @@ SegmentRef DataStack::dereference(reg_t pointer) {
|
||||
ret.isRaw = false; // reg_t based data!
|
||||
ret.maxSize = _capacity * sizeof(reg_t);
|
||||
// FIXME: Is this correct? See comment in LocalVariables::dereference
|
||||
if (pointer.offset & 1)
|
||||
warning("LocalVariables::dereference: Odd offset in pointer %04x:%04x", PRINT_REG(pointer));
|
||||
ret.raw = (byte *)_entries + pointer.offset;
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user