From 7ac56a0d11c235dd665096d3a0f59fd7c1604c9d Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Tue, 26 Oct 2021 22:11:04 +0200 Subject: [PATCH] emitter: Fix Wsign-compare warnings. --- common/emitter/movs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/emitter/movs.cpp b/common/emitter/movs.cpp index a2338e4ef3..879d8c6e70 100644 --- a/common/emitter/movs.cpp +++ b/common/emitter/movs.cpp @@ -137,7 +137,7 @@ namespace x86Emitter { _g1_EmitOp(G1Type_XOR, to_, to_); } - else if (imm == (u32)imm || !to.IsWide()) + else if (imm == (sptr)(u32)imm || !to.IsWide()) { // Note: MOV does not have (reg16/32,imm8) forms. u8 opcode = (to_.Is8BitOp() ? 0xb0 : 0xb8) | to_.Id;