[Scummvm-cvs-logs] SF.net SVN: scummvm:[41143] scummvm/trunk/engines/tinsel/palette.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Jun 3 18:28:09 CEST 2009


Revision: 41143
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41143&view=rev
Author:   lordhoto
Date:     2009-06-03 16:28:09 +0000 (Wed, 03 Jun 2009)

Log Message:
-----------
Fix warning about signed vs. unsigned comparison.

Modified Paths:
--------------
    scummvm/trunk/engines/tinsel/palette.cpp

Modified: scummvm/trunk/engines/tinsel/palette.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/palette.cpp	2009-06-03 16:15:17 UTC (rev 41142)
+++ scummvm/trunk/engines/tinsel/palette.cpp	2009-06-03 16:28:09 UTC (rev 41143)
@@ -103,14 +103,14 @@
 
 	for (int j = 1; j < 16; j++) {
 		clutEntry = READ_LE_UINT16(psxClut + (sizeof(uint16) * j));
-		if(clutEntry) {
+		if (clutEntry) {
 			if (clutEntry == 0x7EC0) { // This is an already known value, used by the in-game text
 				mapperTable[j] = 232; 
 				continue;
 			}
 			
 			// Check for correspondent color
-			for (int i = 0; (i < FROM_LE_32(pal->numColours)) && !colorFound; i++) {
+			for (uint i = 0; (i < FROM_LE_32(pal->numColours)) && !colorFound; i++) {
 				// get R G B values in the same way as psx format converters
 				uint16 psxEquivalent = TINSEL_PSX_RGB(TINSEL_GetRValue(pal->palRGB[i]) >> 3, TINSEL_GetGValue(pal->palRGB[i]) >> 3, TINSEL_GetBValue(pal->palRGB[i]) >> 3); 
 


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