lilypad: fix the gcc warning take 3

Signed vs non-signed comparison
This commit is contained in:
Gregory Hainaut 2016-08-03 18:06:27 +02:00
parent 41bede60eb
commit ac9f2ed284
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ void Update(unsigned int port, unsigned int slot) {
}
pads[port][slot].lockedState ^= LOCK_BUTTONS;
}
for (i=0; i<sizeof(pads[port][slot].lockedSum)/4; i++) {
for (i=0; i< (int)sizeof(pads[port][slot].lockedSum)/4; i++) {
if (((int*)&pads[port][slot].lockedSum)[i]) break;
}
if (i==sizeof(pads[port][slot].lockedSum)/4) {