From 68738df373d74d9b1a5275b4b827c5b870e367d0 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Wed, 8 Jan 2025 22:18:19 -0700 Subject: [PATCH] Fix conversion warning Continuing what was started in #3381 --- src/SFML/Window/NetBSD/JoystickImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {