Explorar o código

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

Sam Lantinga %!s(int64=2) %!d(string=hai) anos
pai
achega
9906d6d3bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/joystick/windows/SDL_rawinputjoystick.c

+ 1 - 1
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;