From c6ad871865e7ce856943ee6dfce5d009ec54862e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 19 Jul 2021 10:31:28 +0200 Subject: [PATCH] Warning fix --- UI/GamepadEmu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/GamepadEmu.cpp b/UI/GamepadEmu.cpp index 8394a3faa2..f36ccfee42 100644 --- a/UI/GamepadEmu.cpp +++ b/UI/GamepadEmu.cpp @@ -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); } }