Skip to content

Commit

Permalink
Fixed error: ordered comparison of pointer with integer zero
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 28, 2024
1 parent 0aa1022 commit 47378ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11xinput2.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 47378ed

Please sign in to comment.