diff options
author | Johannes Schickel | 2009-06-03 16:28:09 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-03 16:28:09 +0000 |
commit | 626765b71a82e3837e039bd2a6d0f9092e86684a (patch) | |
tree | 44ca243129abe46a40037586752faca14924867d /engines | |
parent | ee04870cc2067b1717e5d8319f4d25519e312a9c (diff) | |
download | scummvm-rg350-626765b71a82e3837e039bd2a6d0f9092e86684a.tar.gz scummvm-rg350-626765b71a82e3837e039bd2a6d0f9092e86684a.tar.bz2 scummvm-rg350-626765b71a82e3837e039bd2a6d0f9092e86684a.zip |
Fix warning about signed vs. unsigned comparison.
svn-id: r41143
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tinsel/palette.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tinsel/palette.cpp b/engines/tinsel/palette.cpp index e9914fa2ff..c544bddbb1 100644 --- a/engines/tinsel/palette.cpp +++ b/engines/tinsel/palette.cpp @@ -103,14 +103,14 @@ void psxPaletteMapper(PALQ *originalPal, uint8 *psxClut, byte *mapperTable) { 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); |