From 47378eddf65b99e09be87c8e6e9f91e0734d9906 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 28 Mar 2024 09:34:48 -0700 Subject: [PATCH] Fixed error: ordered comparison of pointer with integer zero --- src/video/x11/SDL_x11xinput2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11xinput2.c b/src/video/x11/SDL_x11xinput2.c index e9ebc89f7..b2b264cc3 100644 --- a/src/video/x11/SDL_x11xinput2.c +++ b/src/video/x11/SDL_x11xinput2.c @@ -757,7 +757,7 @@ void X11_Xinput2UpdateDevices(SDL_VideoDevice *_this, SDL_bool initial_check) /* SDL_TouchID is 64-bit, but our helper functions take Uint32 */ old_touch_devices64 = SDL_GetTouchDevices(&old_touch_count); - if (&old_touch_count > 0) { + if (old_touch_count > 0) { old_touch_devices = (Uint32 *)SDL_malloc(old_touch_count * sizeof(*old_touch_devices)); if (old_touch_devices) { for (int i = 0; i < old_touch_count; ++i) {