diff --git a/src/scripting/vm/jit.cpp b/src/scripting/vm/jit.cpp index fe9e8319f..df26e2eae 100644 --- a/src/scripting/vm/jit.cpp +++ b/src/scripting/vm/jit.cpp @@ -296,7 +296,7 @@ static void CallSqrt(asmjit::X86Compiler& cc, const asmjit::X86Xmm &a, const asm { using namespace asmjit; typedef double(*FuncPtr)(double); - auto call = cc.call(ToMemAddress(static_cast(g_sqrt)), FuncSignature1()); + auto call = cc.call(ToMemAddress(reinterpret_cast(static_cast(g_sqrt))), FuncSignature1()); call->setRet(0, a); call->setArg(0, b); }