x86jit: Avoid negative offset warning.

This commit is contained in:
Unknown W. Brackets committed 2023-08-21 20:38:56 -07:00
1 parent 1ccc2d5d2f
commit bea74ba162
4 files changed
+26 -21

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ void X64JitBackend::CompIR_Basic(IRInst inst) {
switch (inst.op) {
case IROp::Downcount:
//ADD(32, R(DOWNCOUNTREG), R(DOWNCOUNTREG), Imm32(-(s32)inst.constant));
SUB(32, MDisp(CTXREG, -128 + offsetof(MIPSState, downcount)), Imm32((s32)inst.constant));
SUB(32, MDisp(CTXREG, downcountOffset), Imm32((s32)inst.constant));
break;
case IROp::SetConst: