repl: Change LLVM macro to use address instead of pointer

This commit is contained in:
Brian Carroll 2022-01-29 11:24:13 +00:00
parent 06079ccde5
commit d7f10d80ae
2 changed files with 5 additions and 10 deletions

View file

@ -95,7 +95,7 @@ macro_rules! run_jit_function_dynamic_type {
let flag = *result;
if flag == 0 {
$transform(result.add(std::mem::size_of::<RocCallResult<()>>()) as *const u8)
$transform(result.add(std::mem::size_of::<RocCallResult<()>>()) as usize)
} else {
use std::ffi::CString;
use std::os::raw::c_char;