1
0
Fork 0
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:
Sutou Kouhei 2022-09-15 08:51:42 +09:00 committed by Hiroshi SHIBATA
parent a4ad6bd9aa
commit ada9f8a9f7

View file

@ -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) {