Explorar o código

Clean up old-style null check

Frank Praznik hai 3 días
pai
achega
cf646af707
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/events/SDL_keyboard.c

+ 1 - 1
src/events/SDL_keyboard.c

@@ -898,7 +898,7 @@ const bool *SDL_GetKeyboardState(int *numkeys)
 {
     SDL_Keyboard *keyboard = &SDL_keyboard;
 
-    if (numkeys != (int *)0) {
+    if (numkeys) {
         *numkeys = SDL_SCANCODE_COUNT;
     }
     return keyboard->keystate;