Fix a few signed vs unsigned int comparison warnings.

This commit is contained in:
riccardom 2009-04-14 19:26:02 +00:00
parent 6e6e97c551
commit 25e07dfc79
2 changed files with 3 additions and 3 deletions

View File

@ -180,7 +180,7 @@ static BOOL initKeycode(u32 idCode, int level, u32 modulo)
static u16 getBootCodeCRC16() static u16 getBootCodeCRC16()
{ {
int i, j; unsigned int i, j;
u32 crc = 0xFFFF; u32 crc = 0xFFFF;
const u16 val[8] = {0xC0C1, 0xC181, 0xC301, 0xC601, 0xCC01, 0xD801, 0xF001, 0xA001}; const u16 val[8] = {0xC0C1, 0xC181, 0xC301, 0xC601, 0xCC01, 0xD801, 0xF001, 0xA001};
@ -2428,7 +2428,7 @@ static void SetTurbo(bool (&pad) [10]) {
if(currentbutton) { if(currentbutton) {
pad[i]=turbo[TurboTime.time(i)-1]; pad[i]=turbo[TurboTime.time(i)-1];
if(TurboTime.time(i)>=ARRAY_SIZE(turbo)) if(TurboTime.time(i) >= (int)ARRAY_SIZE(turbo))
TurboTime.time(i)=0; TurboTime.time(i)=0;
} }
else else

View File

@ -967,7 +967,7 @@ void gfx3d_glNormal(u32 v)
if(dsSpecular & 0x8000) if(dsSpecular & 0x8000)
{ {
int shininessIndex = (int)(shininessLevel * 128); int shininessIndex = (int)(shininessLevel * 128);
if(shininessIndex >= ARRAY_SIZE(shininessTable)) { if(shininessIndex >= (int)ARRAY_SIZE(shininessTable)) {
//we can't print this right now, because when a game triggers this it triggers it _A_LOT_ //we can't print this right now, because when a game triggers this it triggers it _A_LOT_
//so wait until we have per-frame diagnostics. //so wait until we have per-frame diagnostics.
//this was tested using Princess Debut (US) after proceeding through the intro and getting the tiara. //this was tested using Princess Debut (US) after proceeding through the intro and getting the tiara.