From 4fed3802aa4ef59cd2f50bd683fc5579c7bddfde Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 23 Sep 2023 11:15:41 -0400 Subject: [PATCH] Fix signed vs unsigned comparison warning --- app/streaming/input/gamepad.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/streaming/input/gamepad.cpp b/app/streaming/input/gamepad.cpp index dbdbf419..80529717 100644 --- a/app/streaming/input/gamepad.cpp +++ b/app/streaming/input/gamepad.cpp @@ -581,7 +581,7 @@ void SdlInputHandler::handleControllerDeviceEvent(SDL_ControllerDeviceEvent* eve // On SDL 2.0.14 and later, we can provide enhanced controller information to the host PC // for it to use as a hint for the type of controller to emulate. uint32_t supportedButtonFlags = 0; - for (int i = 0; i < SDL_arraysize(k_ButtonMap); i++) { + for (int i = 0; i < (int)SDL_arraysize(k_ButtonMap); i++) { if (SDL_GameControllerHasButton(state->controller, (SDL_GameControllerButton)i)) { supportedButtonFlags |= k_ButtonMap[i]; }