SDL: Fixed warning C4244: '=': conversion from 'int' to 'Uint8', possible loss of data

From c24f860c4d81cf615d8c4818215e484df4c647a4 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 16 May 2024 11:28:02 -0700
Subject: [PATCH] Fixed warning C4244: '=': conversion from 'int' to 'Uint8',
 possible loss of data

---
 src/joystick/hidapi/SDL_hidapi_ps4.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/joystick/hidapi/SDL_hidapi_ps4.c b/src/joystick/hidapi/SDL_hidapi_ps4.c
index 36a97db1c2c04..5c5d5ea4547ea 100644
--- a/src/joystick/hidapi/SDL_hidapi_ps4.c
+++ b/src/joystick/hidapi/SDL_hidapi_ps4.c
@@ -158,7 +158,7 @@ typedef struct
     SDL_bool enhanced_reports;
     SDL_bool enhanced_mode;
     SDL_bool enhanced_mode_available;
-    int report_interval;
+    Uint8 report_interval;
     SDL_bool report_sensors;
     SDL_bool report_touchpad;
     SDL_bool report_battery;
@@ -815,7 +815,7 @@ static void SDLCALL SDL_PS4ReportIntervalHintChanged(void *userdata, const char
     }
 
     if (new_report_interval != ctx->report_interval) {
-        ctx->report_interval = new_report_interval;
+        ctx->report_interval = (Uint8)new_report_interval;
 
         HIDAPI_DriverPS4_UpdateEffects(ctx, SDL_FALSE);
     }