From 212f7539cb7f7b24a1e02398b99f430921485aab Mon Sep 17 00:00:00 2001
From: Janne Virtala <[EMAIL REDACTED]>
Date: Thu, 2 Apr 2026 17:45:43 +0300
Subject: [PATCH] SDL_PrivateJoystickForceRecentering(): fix infinite loop
(cherry picked from commit b5ef75249f2f39bae77fcb009832ba6ec753a3cc)
---
src/joystick/SDL_joystick.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 78cb4be1905f7..918c2baee3e57 100644
--- a/src/joystick/SDL_joystick.c
+++ b/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();