diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-01 01:14:03 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-01 01:14:03 +0100 |
| commit | 9ca793417149cbaa7b5f4b7797bc929e6e191f28 (patch) | |
| tree | 3f067cad3fe7e606e5e9ea1dd8079874de3f048c /lib/nes/app/input/input-manager.cc | |
| parent | 1d5f5482f91391a6dfee9ec0e7cb0a22ee5f0464 (diff) | |
use custom integer types
Diffstat (limited to 'lib/nes/app/input/input-manager.cc')
| -rw-r--r-- | lib/nes/app/input/input-manager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nes/app/input/input-manager.cc b/lib/nes/app/input/input-manager.cc index dec899a..8131283 100644 --- a/lib/nes/app/input/input-manager.cc +++ b/lib/nes/app/input/input-manager.cc @@ -42,7 +42,7 @@ namespace nes::app { // This controller was previously used and assigned an index -> replace the current device with this // (known) controller. - auto const i = static_cast<std::size_t>(index); + auto const i = static_cast<u32>(index); if (inputs_[i].controller) { inputs_[i].controller->set_index(input_device_controller::index::unused); @@ -68,7 +68,7 @@ namespace nes::app auto it = controllers_.begin(); input_device* fallback = keyboard_; - for (auto i = std::size_t{ 0 }; i < input_count; ++i) + for (auto i = u32{ 0 }; i < input_count; ++i) { if (inputs_[i].controller != nullptr) { continue; } |
