[Scummvm-cvs-logs] SF.net SVN: scummvm: [25412] scummvm/trunk/engines/kyra/script_v1.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Feb 7 17:47:35 CET 2007


Revision: 25412
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25412&view=rev
Author:   lordhoto
Date:     2007-02-07 08:47:34 -0800 (Wed, 07 Feb 2007)

Log Message:
-----------
should silence compiler warnings.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/script_v1.cpp

Modified: scummvm/trunk/engines/kyra/script_v1.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_v1.cpp	2007-02-07 16:30:59 UTC (rev 25411)
+++ scummvm/trunk/engines/kyra/script_v1.cpp	2007-02-07 16:47:34 UTC (rev 25412)
@@ -51,19 +51,19 @@
 		const char *string = stackPosString(0);
 
 		if (_flags.platform == Common::kPlatformFMTowns && _flags.lang == Common::JA_JPN) {
-			static const char townsString1[] = {
+			static const uint8 townsString1[] = {
 				0x83, 0x75, 0x83, 0x89, 0x83, 0x93, 0x83, 0x83, 0x93, 0x81,
 				0x41, 0x82, 0xDC, 0x82, 0xBD, 0x97, 0x88, 0x82, 0xBD, 0x82,
 				0xCC, 0x82, 0xA9, 0x81, 0x48, 0x00, 0x00, 0x00
 			};
-			static const char townsString2[] = {
+			static const uint8 townsString2[] = {
 				0x83, 0x75, 0x83, 0x89, 0x83, 0x93, 0x83, 0x5C, 0x83, 0x93,
 				0x81, 0x41, 0x82, 0xDC, 0x82, 0xBD, 0x97, 0x88, 0x82, 0xBD,
 				0x82, 0xCC, 0x82, 0xA9, 0x81, 0x48, 0x00, 0x00
 			};
 
-			if (strncmp(townsString1, string, sizeof(townsString1)) == 0)
-				string = townsString2;
+			if (strncmp((const char *)townsString1, string, sizeof(townsString1)) == 0)
+				string = (const char *)townsString2;
 		}
 
 		characterSays(-1, string, stackPos(1), stackPos(2));


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