Warning fix

This commit is contained in:
Henrik Rydgård 2021-07-19 10:31:28 +02:00
parent 58ecab849e
commit c6ad871865

View file

@ -187,7 +187,7 @@ void ComboKey::Touch(const TouchInput &input) {
if (g_Config.bHapticFeedback)
Vibrate(HAPTIC_VIRTUAL_KEY);
for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
if (pspButtonBit_ & (1UL << i)) {
if (pspButtonBit_ & (1ULL << i)) {
controllMapper_->pspKey(comboKeyList[i].c, (on_ && toggle_) ? KEY_UP : KEY_DOWN);
}
}
@ -195,7 +195,7 @@ void ComboKey::Touch(const TouchInput &input) {
on_ = !on_;
} else if (!toggle_ && lastDown && !down) {
for (int i = 0; i < ARRAY_SIZE(comboKeyList); i++) {
if (pspButtonBit_ & (1UL << i)) {
if (pspButtonBit_ & (1ULL << i)) {
controllMapper_->pspKey(comboKeyList[i].c, KEY_UP);
}
}