src/events/SDL_keyboard.c
changeset 13200 057a3fe53d5a
parent 12503 806492103856
child 13422 fd6a12de91c7
     1.1 --- a/src/events/SDL_keyboard.c	Wed Oct 30 14:37:06 2019 +0100
     1.2 +++ b/src/events/SDL_keyboard.c	Wed Oct 30 15:13:55 2019 +0100
     1.3 @@ -878,7 +878,7 @@
     1.4  {
     1.5      SDL_Keyboard *keyboard = &SDL_keyboard;
     1.6  
     1.7 -    if (((int)scancode) < ((int)SDL_SCANCODE_UNKNOWN) || scancode >= SDL_NUM_SCANCODES) {
     1.8 +    if (((int)scancode) < SDL_SCANCODE_UNKNOWN || scancode >= SDL_NUM_SCANCODES) {
     1.9            SDL_InvalidParamError("scancode");
    1.10            return 0;
    1.11      }
    1.12 @@ -905,7 +905,7 @@
    1.13  SDL_GetScancodeName(SDL_Scancode scancode)
    1.14  {
    1.15      const char *name;
    1.16 -    if (((int)scancode) < ((int)SDL_SCANCODE_UNKNOWN) || scancode >= SDL_NUM_SCANCODES) {
    1.17 +    if (((int)scancode) < SDL_SCANCODE_UNKNOWN || scancode >= SDL_NUM_SCANCODES) {
    1.18            SDL_InvalidParamError("scancode");
    1.19            return "";
    1.20      }