From 692aaed60ce09543cc3100caf3aefdca96420f23 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Fri, 12 Feb 2021 17:21:48 -0800 Subject: FreeLookController: Fix signed/unsigned warning Loop index int i was being compared against GetControllerCount() which returned a size_t. This was the only place GetControllerCount() was called from so the change of return type doesn't disturb anything else. Changing the loop index to size_t wouldn't work as well since it's passed into GetController(), which takes an int and is called from many places, so it would need a cast anyway on an already busy line. --- Source/Core/InputCommon/InputConfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/InputCommon/InputConfig.cpp') diff --git a/Source/Core/InputCommon/InputConfig.cpp b/Source/Core/InputCommon/InputConfig.cpp index 72b28b6d16..07a9b62daf 100644 --- a/Source/Core/InputCommon/InputConfig.cpp +++ b/Source/Core/InputCommon/InputConfig.cpp @@ -186,9 +186,9 @@ bool InputConfig::ControllersNeedToBeCreated() const return m_controllers.empty(); } -std::size_t InputConfig::GetControllerCount() const +int InputConfig::GetControllerCount() const { - return m_controllers.size(); + return static_cast(m_controllers.size()); } void InputConfig::RegisterHotplugCallback() -- cgit v1.2.3