Fix a few signed vs unsigned int comparison warnings.
This commit is contained in:
parent
6e6e97c551
commit
25e07dfc79
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue