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)
13181318 Uint8 lo = (type & 0xff );
13191319
13201320 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 )))) {
13221322 current_state = SDL_DISABLE ;
13231323 } else {
13241324 current_state = SDL_ENABLE ;
@@ -1332,11 +1332,11 @@ Uint8 SDL_EventState(Uint32 type, int state)
13321332 }
13331333 /* Out of memory, nothing we can do... */
13341334 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 ));
13361336 SDL_FlushEvent (type );
13371337 }
13381338 } 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 ));
13401340 }
13411341
13421342#ifndef SDL_JOYSTICK_DISABLED
You can’t perform that action at this time.
0 commit comments