fixed code to compile with current gcc and 64-bit systems
[rocksndiamonds.git] / src / events.c
index 1e8fcd1c37fc53a57a5c5553c3aea5d4ba118e8c..788cca8479145d1e024a75b620e7a8eaf03a7476 100644 (file)
@@ -604,7 +604,7 @@ void HandleJoystick()
     case SETUP:
     {
       int dx = 0, dy = 0;
-      static long joystickmove_delay = 0;
+      static int joystickmove_delay = 0;
 
       if (DelayReached(&joystickmove_delay,15) || button)
       {