Ver Fonte

SDL_PrivateJoystickForceRecentering(): fix infinite loop

(cherry picked from commit b5ef75249f2f39bae77fcb009832ba6ec753a3cc)
Janne Virtala há 1 mês atrás
pai
commit
212f7539cb
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/joystick/SDL_joystick.c

+ 1 - 1
src/joystick/SDL_joystick.c

@@ -2429,7 +2429,7 @@ bool SDL_IsJoystickBeingAdded(void)
 
 void SDL_PrivateJoystickForceRecentering(SDL_Joystick *joystick)
 {
-    Uint8 i, j;
+    int i, j;
     Uint64 timestamp = SDL_GetTicksNS();
 
     SDL_AssertJoysticksLocked();