[ruby/fiddle] closure: follow variable name change
GitHub: GH-102 https://github.com/ruby/fiddle/commit/2530496602
This commit is contained in:
parent
a4ad6bd9aa
commit
ada9f8a9f7
@ -295,7 +295,7 @@ initialize_body(VALUE user_data)
|
||||
result = ffi_prep_closure_loc(pcl, cif, callback,
|
||||
(void *)(data->self), cl->code);
|
||||
#else
|
||||
result = ffi_prep_closure(pcl, cif, callback, (void *)self);
|
||||
result = ffi_prep_closure(pcl, cif, callback, (void *)(data->self));
|
||||
cl->code = (void *)pcl;
|
||||
i = mprotect(pcl, sizeof(*pcl), PROT_READ | PROT_EXEC);
|
||||
if (i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user