Fix -Wsign-compare warning

Change-Id: I936c06df1c75f03c57b4f34b67c76ca50db64ee0
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
Roland Winklmeier 2017-01-26 13:03:06 +01:00
parent 502bdb3930
commit 72be0422f9
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ void QXInputThread::dispatch(int idx, XINPUT_GAMEPAD *state)
{ XINPUT_GAMEPAD_X, QGamepadManager::ButtonX },
{ XINPUT_GAMEPAD_Y, QGamepadManager::ButtonY }
};
for (int i = 0; i < sizeof(buttonMap) / sizeof(ButtonMap); ++i) {
for (uint i = 0; i < sizeof(buttonMap) / sizeof(ButtonMap); ++i) {
const unsigned short xb = buttonMap[i].xbutton;
unsigned short isDown = state->wButtons & xb;
if (isDown != (m_controllers[idx].buttons & xb)) {