mirror of
https://github.com/SFML/SFML.git
synced 2025-01-18 15:25:12 +08:00
Use correct type for accessing array
This commit is contained in:
parent
8316c9e8d5
commit
722ab54f84
@ -304,8 +304,8 @@ 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))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user