From 89e0332f085d27a08099265c4be94d1ce9fb2322 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 6 Jun 2020 02:24:52 +0200 Subject: [PATCH] Fix incorrect pointer type --- src/common/scripting/jit/jit_store.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/scripting/jit/jit_store.cpp b/src/common/scripting/jit/jit_store.cpp index 8c4d207f56..cc5242abaf 100644 --- a/src/common/scripting/jit/jit_store.cpp +++ b/src/common/scripting/jit/jit_store.cpp @@ -88,13 +88,13 @@ void JitCompiler::EmitSO_R() void JitCompiler::EmitSP() { EmitNullPointerThrow(A, X_WRITE_NIL); - cc.CreateStore(LoadA(B), OffsetPtr(LoadA(A), ConstD(C))); + cc.CreateStore(LoadA(B), ToInt8PtrPtr(LoadA(A), ConstD(C))); } void JitCompiler::EmitSP_R() { EmitNullPointerThrow(A, X_WRITE_NIL); - cc.CreateStore(LoadA(B), OffsetPtr(LoadA(A), LoadD(C))); + cc.CreateStore(LoadA(B), ToInt8PtrPtr(LoadA(A), LoadD(C))); } void JitCompiler::EmitSV2()