From 9906d6d3bc05bd11d09d524cbf26f25329ecb7a9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 29 Dec 2023 09:29:29 -0800 Subject: [PATCH] Fixed warning C4244: '=': conversion from 'SDL_bool' to 'Uint8', possible loss of data --- src/joystick/windows/SDL_rawinputjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/windows/SDL_rawinputjoystick.c b/src/joystick/windows/SDL_rawinputjoystick.c index 9c21352370..b5f6113f20 100644 --- a/src/joystick/windows/SDL_rawinputjoystick.c +++ b/src/joystick/windows/SDL_rawinputjoystick.c @@ -1802,7 +1802,7 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick) } } if (!ctx->wgi_correlated) { - SDL_bool new_correlation_count = 0; + Uint8 new_correlation_count = 0; if (RAWINPUT_MissingWindowsGamingInputSlot()) { Uint8 correlation_id = 0; WindowsGamingInputGamepadState *slot_idx = NULL;