From 722ab54f84c0ebe989abd3c742fe4d6111c9ff8b Mon Sep 17 00:00:00 2001 From: Jonny Paton Date: Tue, 7 Jan 2025 11:33:54 +0000 Subject: [PATCH] Use correct type for accessing array --- src/SFML/Window/FreeBSD/JoystickImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Window/FreeBSD/JoystickImpl.cpp b/src/SFML/Window/FreeBSD/JoystickImpl.cpp index ddb41b2bc..d2d2c1adc 100644 --- a/src/SFML/Window/FreeBSD/JoystickImpl.cpp +++ b/src/SFML/Window/FreeBSD/JoystickImpl.cpp @@ -304,8 +304,8 @@ JoystickState JoystickImpl::JoystickImpl::update() if (!data) continue; - int buttonIndex = 0; - hid_item_t item; + std::size_t buttonIndex = 0; + hid_item_t item; while (hid_get_item(data, &item)) {