- fix truncated load addresses due to a bug in asmjit

- change ToMemAddress to use uint64_t
This commit is contained in:
Magnus Norddahl 2018-09-15 15:38:16 +02:00
parent 06b54d3aaa
commit 4364feea9a
2 changed files with 14 additions and 10 deletions

View file

@ -65,9 +65,9 @@ private:
pc++; // This instruction uses two instruction slots - skip the next one
}
static int64_t ToMemAddress(const void *d)
static uint64_t ToMemAddress(const void *d)
{
return (int64_t)(ptrdiff_t)d;
return (uint64_t)(ptrdiff_t)d;
}
void CallSqrt(const asmjit::X86Xmm &a, const asmjit::X86Xmm &b);