all repos — mgba @ b810e38bd7278a97e9699646aaa20c4a35bb638d

mGBA Game Boy Advance Emulator

Fix a compiler warning in SIO code
Jeffrey Pfau jeffrey@endrift.com
Thu, 10 Jul 2014 01:05:28 -0700
commit

b810e38bd7278a97e9699646aaa20c4a35bb638d

parent

d56dec79e7b715aa08cc5338f1e1369db45ef5ae

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/gba-sio.csrc/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);