yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

configure_input_player: Resolve sign conversion warnings in UpdateMappingWithDefaults()

Prevents sign mismatch warnings in the loop conditionals.
This commit is contained in:
Lioncash 2020-08-29 16:43:06 -04:00
parent 57d9ef5a89
commit 92c162126b
1 changed files with 2 additions and 2 deletions

View File

@ -646,10 +646,10 @@ void ConfigureInputPlayer::UpdateMappingWithDefaults() {
const auto& device = input_devices[ui->comboDevices->currentIndex()]; const auto& device = input_devices[ui->comboDevices->currentIndex()];
auto button_mapping = input_subsystem->GetButtonMappingForDevice(device); auto button_mapping = input_subsystem->GetButtonMappingForDevice(device);
auto analog_mapping = input_subsystem->GetAnalogMappingForDevice(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)]; 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)]; analogs_param[i] = analog_mapping[static_cast<Settings::NativeAnalog::Values>(i)];
} }