From 4c3a5eb1c524eb7fed32fb946eabbf6edbc2b212 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 11 Dec 2023 18:11:34 -0500 Subject: [PATCH] JitArm64_SystemRegisters: Resolve -Wsign-compare warning --- .../Core/Core/PowerPC/JitArm64/JitArm64_SystemRegisters.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_SystemRegisters.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_SystemRegisters.cpp index fda306984f..3521f9c66b 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_SystemRegisters.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_SystemRegisters.cpp @@ -236,9 +236,9 @@ void JitArm64::twx(UGeckoInstruction inst) constexpr std::array conditions{{CC_LT, CC_GT, CC_EQ, CC_VC, CC_VS}}; Common::SmallVector fixups; - for (int i = 0; i < conditions.size(); i++) + for (size_t i = 0; i < conditions.size(); i++) { - if (inst.TO & (1 << i)) + if (inst.TO & (1U << i)) { FixupBranch f = B(conditions[i]); fixups.push_back(f);