Fix a compiler warning in SIO code

This commit is contained in:
Jeffrey Pfau 2014-07-10 01:05:28 -07:00
parent d56dec79e7
commit b810e38bd7
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ static struct GBASIODriver* _lookupDriver(struct GBASIO* sio, enum GBASIOMode mo
}
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);