summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-09-10 19:56:16 +0200
committerGitHub <noreply@github.com>2020-09-10 19:56:16 +0200
commit41b8ecdeb66b8314f40c3823da9d3d0887eaa8f9 (patch)
treef4f69a2cdd541bb96c8469a355a46cd60c807c39 /src
parentMerge pull request #4633 from ReinUsesLisp/gpu-init (diff)
parentconfigure_input_player: Resolve sign conversion warnings in UpdateMappingWithDefaults() (diff)
downloadyuzu-41b8ecdeb66b8314f40c3823da9d3d0887eaa8f9.tar
yuzu-41b8ecdeb66b8314f40c3823da9d3d0887eaa8f9.tar.gz
yuzu-41b8ecdeb66b8314f40c3823da9d3d0887eaa8f9.tar.bz2
yuzu-41b8ecdeb66b8314f40c3823da9d3d0887eaa8f9.tar.lz
yuzu-41b8ecdeb66b8314f40c3823da9d3d0887eaa8f9.tar.xz
yuzu-41b8ecdeb66b8314f40c3823da9d3d0887eaa8f9.tar.zst
yuzu-41b8ecdeb66b8314f40c3823da9d3d0887eaa8f9.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/configure_input_player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp
index 13ecb3dc5..a53578837 100644
--- a/src/yuzu/configuration/configure_input_player.cpp
+++ b/src/yuzu/configuration/configure_input_player.cpp
@@ -646,10 +646,10 @@ void ConfigureInputPlayer::UpdateMappingWithDefaults() {
const auto& device = input_devices[ui->comboDevices->currentIndex()];
auto button_mapping = input_subsystem->GetButtonMappingForDevice(device);
auto analog_mapping = input_subsystem->GetAnalogMappingForDevice(device);
- for (int i = 0; i < buttons_param.size(); ++i) {
+ for (std::size_t i = 0; i < buttons_param.size(); ++i) {
buttons_param[i] = button_mapping[static_cast<Settings::NativeButton::Values>(i)];
}
- for (int i = 0; i < analogs_param.size(); ++i) {
+ for (std::size_t i = 0; i < analogs_param.size(); ++i) {
analogs_param[i] = analog_mapping[static_cast<Settings::NativeAnalog::Values>(i)];
}