File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1318,7 +1318,7 @@ Uint8 SDL_EventState(Uint32 type, int state)
1318
1318
Uint8 lo = (type & 0xff );
1319
1319
1320
1320
if (SDL_disabled_events [hi ] &&
1321
- (SDL_disabled_events [hi ]-> bits [lo / 32 ] & (1 << (lo & 31 )))) {
1321
+ (SDL_disabled_events [hi ]-> bits [lo / 32 ] & (1U << (lo & 31 )))) {
1322
1322
current_state = SDL_DISABLE ;
1323
1323
} else {
1324
1324
current_state = SDL_ENABLE ;
@@ -1332,11 +1332,11 @@ Uint8 SDL_EventState(Uint32 type, int state)
1332
1332
}
1333
1333
/* Out of memory, nothing we can do... */
1334
1334
if (SDL_disabled_events [hi ]) {
1335
- SDL_disabled_events [hi ]-> bits [lo / 32 ] |= (1 << (lo & 31 ));
1335
+ SDL_disabled_events [hi ]-> bits [lo / 32 ] |= (1U << (lo & 31 ));
1336
1336
SDL_FlushEvent (type );
1337
1337
}
1338
1338
} else { // state == SDL_ENABLE
1339
- SDL_disabled_events [hi ]-> bits [lo / 32 ] &= ~(1 << (lo & 31 ));
1339
+ SDL_disabled_events [hi ]-> bits [lo / 32 ] &= ~(1U << (lo & 31 ));
1340
1340
}
1341
1341
1342
1342
#ifndef SDL_JOYSTICK_DISABLED
You can’t perform that action at this time.
0 commit comments