[Scummvm-cvs-logs] SF.net SVN: scummvm:[44386] scummvm/trunk/engines/sci/engine/segment.cpp

wjpalenstijn at users.sourceforge.net wjpalenstijn at users.sourceforge.net
Sun Sep 27 03:49:36 CEST 2009


Revision: 44386
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44386&view=rev
Author:   wjpalenstijn
Date:     2009-09-27 01:49:35 +0000 (Sun, 27 Sep 2009)

Log Message:
-----------
SCI: Add warning when dereferencing non-aligned stack pointer

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/segment.cpp

Modified: scummvm/trunk/engines/sci/engine/segment.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/segment.cpp	2009-09-26 23:43:45 UTC (rev 44385)
+++ scummvm/trunk/engines/sci/engine/segment.cpp	2009-09-27 01:49:35 UTC (rev 44386)
@@ -277,6 +277,8 @@
 	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;
 }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list