From cd211da2d853c8b0d9b5e2a5bea6f4aaf705b429 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 14 Oct 2018 08:53:18 +0200 Subject: [PATCH] - fix wrong shift direction --- src/scripting/vm/jit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/vm/jit.cpp b/src/scripting/vm/jit.cpp index 01453078b..60e692dd4 100644 --- a/src/scripting/vm/jit.cpp +++ b/src/scripting/vm/jit.cpp @@ -207,7 +207,7 @@ static TArray CreateUnwindInfo(asmjit::CCFunc *func) opoffset = (uint32_t)assembler.getOffset(); opcode = UWOP_SAVE_XMM128_FAR; opinfo = regId; - codes.Push((uint16_t)(vecBase.getOffsetLo32() << 16)); + codes.Push((uint16_t)(vecBase.getOffsetLo32() >> 16)); codes.Push((uint16_t)vecBase.getOffsetLo32()); codes.Push(opoffset | (opcode << 8) | (opinfo << 12)); }