Sfoglia il codice sorgente

Clean up old-style null check

Frank Praznik 3 giorni fa
parent
commit
cf646af707
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;