Browse Source

Sync -Wsign-compare warning fix from sdl2-compat

Anonymous Maarten 2 years ago
parent
commit
0465224616
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/events/SDL_gesture.c

+ 2 - 2
src/events/SDL_gesture.c

@@ -61,7 +61,7 @@ typedef struct
 typedef struct
 typedef struct
 {
 {
     SDL_FloatPoint path[DOLLARNPOINTS];
     SDL_FloatPoint path[DOLLARNPOINTS];
-    unsigned long hash;
+    Sint64 hash;
 } SDL_DollarTemplate;
 } SDL_DollarTemplate;
 
 
 typedef struct
 typedef struct
@@ -630,7 +630,7 @@ void SDL_GestureProcessEvent(SDL_Event *event)
                                         &bestTempl, inTouch);
                                         &bestTempl, inTouch);
                 if (bestTempl >= 0) {
                 if (bestTempl >= 0) {
                     /* Send Event */
                     /* Send Event */
-                    unsigned long gestureId = inTouch->dollarTemplate[bestTempl].hash;
+                    Sint64 gestureId = inTouch->dollarTemplate[bestTempl].hash;
                     SDL_SendGestureDollar(inTouch, gestureId, error);
                     SDL_SendGestureDollar(inTouch, gestureId, error);
                     /* printf ("%s\n",);("Dollar error: %f\n",error); */
                     /* printf ("%s\n",);("Dollar error: %f\n",error); */
                 }
                 }