From cf646af707764ead2fa39703545030b67b5d1be5 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Mon, 15 Sep 2025 10:59:36 -0400 Subject: [PATCH] Clean up old-style null check --- src/events/SDL_keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/SDL_keyboard.c b/src/events/SDL_keyboard.c index 59aba36670..e7d5e2f9f0 100644 --- a/src/events/SDL_keyboard.c +++ b/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;