[Scummvm-cvs-logs] SF.net SVN: scummvm:[51998] tools/branches/gsoc2010-decompiler/decompiler/ control_flow.cpp

pidgeot at users.sourceforge.net pidgeot at users.sourceforge.net
Wed Aug 11 21:40:59 CEST 2010


Revision: 51998
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51998&view=rev
Author:   pidgeot
Date:     2010-08-11 19:40:58 +0000 (Wed, 11 Aug 2010)

Log Message:
-----------
DECOMPILER: Bugfix in grouping

Modified Paths:
--------------
    tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp

Modified: tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp	2010-08-11 19:32:07 UTC (rev 51997)
+++ tools/branches/gsoc2010-decompiler/decompiler/control_flow.cpp	2010-08-11 19:40:58 UTC (rev 51998)
@@ -279,8 +279,10 @@
 		}
 
 		expectedStackLevel = grCur->_stackLevel;
-		if (expectedStackLevel > grNext->_stackLevel && grNext->_stackLevel >= 0)
+		if (expectedStackLevel > grNext->_stackLevel && grNext->_stackLevel >= 0) {
 			expectedStackLevel = grNext->_stackLevel;
+			grCur->_stackLevel = expectedStackLevel;
+		}
 
 		stackLevel += curInst->_stackChange;
 


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