diff --git a/src/SFML/Window/NetBSD/JoystickImpl.cpp b/src/SFML/Window/NetBSD/JoystickImpl.cpp index 83318cdbe..e5863bad1 100644 --- a/src/SFML/Window/NetBSD/JoystickImpl.cpp +++ b/src/SFML/Window/NetBSD/JoystickImpl.cpp @@ -309,8 +309,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)) {