emitter: Fix Wsign-compare warnings.

This commit is contained in:
lightningterror 2021-10-26 22:11:04 +02:00
parent 667f98334a
commit 7ac56a0d11
1 changed files with 1 additions and 1 deletions

View File

@ -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;