[Scummvm-cvs-logs] SF.net SVN: scummvm:[51264] tools/branches/gsoc2010-decompiler/decompiler/ codegen.cpp
pidgeot at users.sourceforge.net
pidgeot at users.sourceforge.net
Sun Jul 25 00:18:55 CEST 2010
Revision: 51264
http://scummvm.svn.sourceforge.net/scummvm/?rev=51264&view=rev
Author: pidgeot
Date: 2010-07-24 22:18:55 +0000 (Sat, 24 Jul 2010)
Log Message:
-----------
Don't decrement _indentLevel if 0
Modified Paths:
--------------
tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp
Modified: tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp
===================================================================
--- tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp 2010-07-24 22:01:15 UTC (rev 51263)
+++ tools/branches/gsoc2010-decompiler/decompiler/codegen.cpp 2010-07-24 22:18:55 UTC (rev 51264)
@@ -155,7 +155,7 @@
p = GET(entryPoint);
while (p != NULL) {
for (std::vector<CodeLine>::iterator it = p->_code.begin(); it != p->_code.end(); ++it) {
- if (it->_unindentBefore)
+ if (it->_unindentBefore && _indentLevel != 0)
_indentLevel--;
_output << boost::format("%08X: %s") % p->_start->_address % indentString(it->_line) << std::endl;
if (it->_indentAfter)
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