[Scummvm-cvs-logs] SF.net SVN: scummvm:[41682] tools/branches/gsoc2009-decompiler/decompiler/ misc.h

kjdf at users.sourceforge.net kjdf at users.sourceforge.net
Fri Jun 19 20:30:56 CEST 2009


Revision: 41682
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41682&view=rev
Author:   kjdf
Date:     2009-06-19 18:30:55 +0000 (Fri, 19 Jun 2009)

Log Message:
-----------
decompiler: addresses are now printed in hex

Modified Paths:
--------------
    tools/branches/gsoc2009-decompiler/decompiler/misc.h

Modified: tools/branches/gsoc2009-decompiler/decompiler/misc.h
===================================================================
--- tools/branches/gsoc2009-decompiler/decompiler/misc.h	2009-06-19 18:24:23 UTC (rev 41681)
+++ tools/branches/gsoc2009-decompiler/decompiler/misc.h	2009-06-19 18:30:55 UTC (rev 41682)
@@ -22,7 +22,7 @@
 
 string phex(int i, int width=4) {
 	ostringstream ret;
-	ret << setfill('0') << setw(width) << i << 'h';
+	ret << hex << setfill('0') << setw(width) << i;
 	return ret.str();
 }
 


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