From 0c57887839474c9f78fa9ada252fafb6ee3e5de9 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sun, 10 Nov 2019 10:04:13 -0600 Subject: [PATCH] evdev: fix bad integer division. --- Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index 8aed987a2a..824e5ef0c1 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -75,11 +75,11 @@ public: int value = 0; libevdev_fetch_event_value(m_dev, EV_ABS, m_code, &value); - return ControlState(value - m_base) / m_range; + return (value - m_base) / m_range; } protected: - int m_range; + ControlState m_range; int m_base; };