diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2020-12-05 17:51:51 +0100 |
---|---|---|
committer | Lars Kanis <lars@greiz-reinsdorf.de> | 2020-12-05 17:51:51 +0100 |
commit | 9029cc0da03175c12b412e14f1fdf9814a2cf293 (patch) | |
tree | 02c17aa2402afcaa5034e02b18370a47d1fe534c /ext/ffi_c/MethodHandle.c | |
parent | d77419803ef92e9101b189743c9174df9079c60f (diff) | |
parent | a10ac1b8fadeed65064ed9a8e8d5956a9c2d6980 (diff) | |
download | ffi-9029cc0da03175c12b412e14f1fdf9814a2cf293.tar.gz |
Merge branch 'fix-crash-on-apple-silicon' of https://github.com/Watson1978/ffi into Watson1978-fix-crash-on-apple-silicon
Diffstat (limited to 'ext/ffi_c/MethodHandle.c')
-rw-r--r-- | ext/ffi_c/MethodHandle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi_c/MethodHandle.c b/ext/ffi_c/MethodHandle.c index c44167e..d047e10 100644 --- a/ext/ffi_c/MethodHandle.c +++ b/ext/ffi_c/MethodHandle.c @@ -136,7 +136,7 @@ prep_trampoline(void* ctx, void* code, Closure* closure, char* errmsg, size_t er #if defined(USE_RAW) ffiStatus = ffi_prep_raw_closure(code, &mh_cif, attached_method_invoke, closure); #else - ffiStatus = ffi_prep_closure_loc(code, &mh_cif, attached_method_invoke, closure, code); + ffiStatus = ffi_prep_closure_loc(closure->pcl, &mh_cif, attached_method_invoke, closure, code); #endif if (ffiStatus != FFI_OK) { snprintf(errmsg, errmsgsize, "ffi_prep_closure_loc failed. status=%#x", ffiStatus); |