diff --git a/desmume/src/NDSSystem.cpp b/desmume/src/NDSSystem.cpp index 05cc79c55..d9a0ec3b1 100644 --- a/desmume/src/NDSSystem.cpp +++ b/desmume/src/NDSSystem.cpp @@ -180,7 +180,7 @@ static BOOL initKeycode(u32 idCode, int level, u32 modulo) static u16 getBootCodeCRC16() { - int i, j; + unsigned int i, j; u32 crc = 0xFFFF; const u16 val[8] = {0xC0C1, 0xC181, 0xC301, 0xC601, 0xCC01, 0xD801, 0xF001, 0xA001}; @@ -2428,7 +2428,7 @@ static void SetTurbo(bool (&pad) [10]) { if(currentbutton) { 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; } else diff --git a/desmume/src/gfx3d.cpp b/desmume/src/gfx3d.cpp index ddf3f934c..429a3c1f2 100644 --- a/desmume/src/gfx3d.cpp +++ b/desmume/src/gfx3d.cpp @@ -967,7 +967,7 @@ void gfx3d_glNormal(u32 v) if(dsSpecular & 0x8000) { 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_ //so wait until we have per-frame diagnostics. //this was tested using Princess Debut (US) after proceeding through the intro and getting the tiara.