Fix a compiler warning in SIO code
Jeffrey Pfau jeffrey@endrift.com
Thu, 10 Jul 2014 01:05:28 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-sio.c
→
src/gba/gba-sio.c
@@ -17,7 +17,7 @@ }
} static void _switchMode(struct GBASIO* sio) { - int mode = ((sio->rcnt >> 14) & 0xC) | ((sio->siocnt >> 12) & 0x3); + unsigned mode = ((sio->rcnt >> 14) & 0xC) | ((sio->siocnt >> 12) & 0x3); enum GBASIOMode oldMode = sio->mode; if (mode < 8) { sio->mode = (enum GBASIOMode) (mode & 0x3);