From 0465224616adff937c69b286abd059655577e993 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Wed, 9 Aug 2023 01:30:56 +0200 Subject: [PATCH] Sync -Wsign-compare warning fix from sdl2-compat --- src/events/SDL_gesture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/SDL_gesture.c b/src/events/SDL_gesture.c index 1769457eb..cc18f84ed 100644 --- a/src/events/SDL_gesture.c +++ b/src/events/SDL_gesture.c @@ -61,7 +61,7 @@ typedef struct typedef struct { SDL_FloatPoint path[DOLLARNPOINTS]; - unsigned long hash; + Sint64 hash; } SDL_DollarTemplate; typedef struct @@ -630,7 +630,7 @@ void SDL_GestureProcessEvent(SDL_Event *event) &bestTempl, inTouch); if (bestTempl >= 0) { /* Send Event */ - unsigned long gestureId = inTouch->dollarTemplate[bestTempl].hash; + Sint64 gestureId = inTouch->dollarTemplate[bestTempl].hash; SDL_SendGestureDollar(inTouch, gestureId, error); /* printf ("%s\n",);("Dollar error: %f\n",error); */ }