mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue