Use correct type for accessing array

This commit is contained in:
Jonny Paton 2025-01-07 11:33:54 +00:00 committed by Lukas Dürrenberger
parent 8316c9e8d5
commit 722ab54f84

View File

@ -304,7 +304,7 @@ JoystickState JoystickImpl::JoystickImpl::update()
if (!data) if (!data)
continue; continue;
int buttonIndex = 0; std::size_t buttonIndex = 0;
hid_item_t item; hid_item_t item;
while (hid_get_item(data, &item)) while (hid_get_item(data, &item))