summaryrefslogtreecommitdiffhomepage
path: root/dinput/win32-joystick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dinput/win32-joystick.cpp')
-rw-r--r--dinput/win32-joystick.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dinput/win32-joystick.cpp b/dinput/win32-joystick.cpp
index 8f2b4085..4da5c57d 100644
--- a/dinput/win32-joystick.cpp
+++ b/dinput/win32-joystick.cpp
@@ -222,7 +222,7 @@ bool win32_joy_ctx::joy::poll(fn const& f)
}
}
}
- else if (i >= 0 && i < max_buttons)
+ else if ((unsigned)i < max_buttons)
{
const bool new_value = !!(event.dwData & 0x80);
if (last_state[i] != new_value)