[Scummvm-cvs-logs] SF.net SVN: scummvm: [29893] scummvm/trunk/engines/lure/strings.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Mon Dec 17 12:21:27 CET 2007


Revision: 29893
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29893&view=rev
Author:   dreammaster
Date:     2007-12-17 03:21:26 -0800 (Mon, 17 Dec 2007)

Log Message:
-----------
Added some casting of fields in debug statements

Modified Paths:
--------------
    scummvm/trunk/engines/lure/strings.cpp

Modified: scummvm/trunk/engines/lure/strings.cpp
===================================================================
--- scummvm/trunk/engines/lure/strings.cpp	2007-12-17 03:29:02 UTC (rev 29892)
+++ scummvm/trunk/engines/lure/strings.cpp	2007-12-17 11:21:26 UTC (rev 29893)
@@ -216,7 +216,7 @@
 				destPos += strlen(destPos);
 
 				debugC(ERROR_DETAILED, kLureDebugStrings, "String data %xh/%.2xh val=%.2xh name=%s",
-					charOffset, charBitMask, ch, p);
+					charOffset, charBitMask, (uint8)ch, p);
 			}
 		} else if ((uint8) ch >= 0xa0) {
 			const char *p = getName((uint8) ch - 0xa0);
@@ -227,7 +227,7 @@
 		} else {
 			*destPos++ = ch;
 			debugC(ERROR_DETAILED, kLureDebugStrings, "String data %xh/%.2xh val=%.2xh char=%c",
-				charOffset, charBitMask, ch, ch);
+				charOffset, charBitMask, (uint8)ch, ch);
 		}
 
 		charOffset = _srcPos - _stringTable;


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