diff options
| author | 2019-05-29 01:33:00 -0400 | |
|---|---|---|
| committer | 2019-05-31 04:47:02 -0300 | |
| commit | e70f16fff793e1f3145a9ad2f4d9a704c6218144 (patch) | |
| tree | d9a60226baf6c983da69fcfa9940837415b5d856 /src/input_common/sdl/sdl_impl.cpp | |
| parent | common/math_util: Provide a template deduction guide for Common::Rectangle (diff) | |
| download | yuzu-e70f16fff793e1f3145a9ad2f4d9a704c6218144.tar.gz yuzu-e70f16fff793e1f3145a9ad2f4d9a704c6218144.tar.xz yuzu-e70f16fff793e1f3145a9ad2f4d9a704c6218144.zip | |
input_common/sdl/sdl_impl: Silence sign conversion warnings
Makes the conversions explicit, as opposed to implicit.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index 5949ecbae..0b69bfede 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -143,9 +143,9 @@ std::shared_ptr<SDLJoystick> SDLState::GetSDLJoystickByGUID(const std::string& g | |||
| 143 | std::lock_guard lock{joystick_map_mutex}; | 143 | std::lock_guard lock{joystick_map_mutex}; |
| 144 | const auto it = joystick_map.find(guid); | 144 | const auto it = joystick_map.find(guid); |
| 145 | if (it != joystick_map.end()) { | 145 | if (it != joystick_map.end()) { |
| 146 | while (it->second.size() <= port) { | 146 | while (it->second.size() <= static_cast<std::size_t>(port)) { |
| 147 | auto joystick = std::make_shared<SDLJoystick>(guid, it->second.size(), nullptr, | 147 | auto joystick = std::make_shared<SDLJoystick>(guid, static_cast<int>(it->second.size()), |
| 148 | [](SDL_Joystick*) {}); | 148 | nullptr, [](SDL_Joystick*) {}); |
| 149 | it->second.emplace_back(std::move(joystick)); | 149 | it->second.emplace_back(std::move(joystick)); |
| 150 | } | 150 | } |
| 151 | return it->second[port]; | 151 | return it->second[port]; |