Commit 310735e7 authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Use ffi_prep_closure_loc rather than ffi_prep_closure

The latter is deprecated. Part of #7718.
parent 144db21e
......@@ -131,7 +131,7 @@ createAdjustor (int cconv,
barf("createAdjustor: failed to allocate memory");
}
r = ffi_prep_closure(cl, cif, (void*)wptr, hptr/*userdata*/);
r = ffi_prep_closure_loc(cl, cif, (void*)wptr, hptr/*userdata*/, code);
if (r != FFI_OK) barf("ffi_prep_closure failed: %d", r);
return (void*)code;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment