From c17be9eb212a18e899245a6378478b6527cc654a Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 18 Aug 2018 22:46:18 +0200 Subject: [PATCH] - fix clang compile error --- 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 fe9e8319f4..df26e2eae9 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); }