hey pa__ dont use ARRAYSIZE, use ARRAY_SIZE instead.
This commit is contained in:
parent
ed3393987f
commit
45661199e6
|
@ -2428,7 +2428,7 @@ void SetTurbo(bool (&pad) [10]) {
|
|||
if(currentbutton) {
|
||||
pad[i]=turbo[TurboTime.time(i)-1];
|
||||
|
||||
if(TurboTime.time(i)>=ARRAYSIZE(turbo))
|
||||
if(TurboTime.time(i)>=ARRAY_SIZE(turbo))
|
||||
TurboTime.time(i)=0;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -171,7 +171,7 @@ u8 Mic_ReadSample()
|
|||
}
|
||||
else { //use the "random" values
|
||||
x++;
|
||||
if(x > ARRAYSIZE(random))
|
||||
if(x > ARRAY_SIZE(random))
|
||||
x=0;
|
||||
ret = random[x];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue