Skip to content

Commit

Permalink
- fix clang compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Aug 18, 2018
1 parent 3453f05 commit c17be9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/vm/jit.cpp
Expand Up @@ -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<FuncPtr>(g_sqrt)), FuncSignature1<void, double>());
auto call = cc.call(ToMemAddress(reinterpret_cast<const void*>(static_cast<FuncPtr>(g_sqrt))), FuncSignature1<void, double>());
call->setRet(0, a);
call->setArg(0, b);
}
Expand Down

0 comments on commit c17be9e

Please sign in to comment.