diff options
| author | 2020-07-12 15:36:27 -0400 | |
|---|---|---|
| committer | 2020-07-12 15:36:27 -0400 | |
| commit | 9ce6ea648f7cb51f5411d3e0753ef9a3439381c5 (patch) | |
| tree | 9d689e6fb90cc578efc56fd9204910e100180e7f /src/input_common/gcadapter/gc_adapter.cpp | |
| parent | Merge pull request #4221 from jbeich/unused-qt-opengl (diff) | |
| download | yuzu-9ce6ea648f7cb51f5411d3e0753ef9a3439381c5.tar.gz yuzu-9ce6ea648f7cb51f5411d3e0753ef9a3439381c5.tar.xz yuzu-9ce6ea648f7cb51f5411d3e0753ef9a3439381c5.zip | |
gc_adapter: Silence sign conversion warnings
Diffstat (limited to 'src/input_common/gcadapter/gc_adapter.cpp')
| -rw-r--r-- | src/input_common/gcadapter/gc_adapter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cpp index 6d9f4d9eb..9fa170711 100644 --- a/src/input_common/gcadapter/gc_adapter.cpp +++ b/src/input_common/gcadapter/gc_adapter.cpp | |||
| @@ -33,7 +33,7 @@ Adapter::Adapter() { | |||
| 33 | } | 33 | } |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | GCPadStatus Adapter::GetPadStatus(int port, const std::array<u8, 37>& adapter_payload) { | 36 | GCPadStatus Adapter::GetPadStatus(std::size_t port, const std::array<u8, 37>& adapter_payload) { |
| 37 | GCPadStatus pad = {}; | 37 | GCPadStatus pad = {}; |
| 38 | bool get_origin = false; | 38 | bool get_origin = false; |
| 39 | 39 | ||
| @@ -227,7 +227,7 @@ void Adapter::Setup() { | |||
| 227 | } | 227 | } |
| 228 | 228 | ||
| 229 | if (devices != nullptr) { | 229 | if (devices != nullptr) { |
| 230 | for (std::size_t index = 0; index < device_count; ++index) { | 230 | for (std::size_t index = 0; index < static_cast<std::size_t>(device_count); ++index) { |
| 231 | if (CheckDeviceAccess(devices[index])) { | 231 | if (CheckDeviceAccess(devices[index])) { |
| 232 | // GC Adapter found and accessible, registering it | 232 | // GC Adapter found and accessible, registering it |
| 233 | GetGCEndpoint(devices[index]); | 233 | GetGCEndpoint(devices[index]); |
| @@ -357,11 +357,11 @@ void Adapter::Reset() { | |||
| 357 | } | 357 | } |
| 358 | } | 358 | } |
| 359 | 359 | ||
| 360 | bool Adapter::DeviceConnected(int port) { | 360 | bool Adapter::DeviceConnected(std::size_t port) { |
| 361 | return adapter_controllers_status[port] != ControllerTypes::None; | 361 | return adapter_controllers_status[port] != ControllerTypes::None; |
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | void Adapter::ResetDeviceType(int port) { | 364 | void Adapter::ResetDeviceType(std::size_t port) { |
| 365 | adapter_controllers_status[port] = ControllerTypes::None; | 365 | adapter_controllers_status[port] = ControllerTypes::None; |
| 366 | } | 366 | } |
| 367 | 367 | ||