mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 01:38:44 +00:00
Fix signed vs unsigned comparison warning
This commit is contained in:
parent
f7bb4611e9
commit
4fed3802aa
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue