diff options
| author | U.Nakamura <usa@ruby-lang.org> | 2023-10-10 20:52:53 +0900 |
|---|---|---|
| committer | U.Nakamura <usa@ruby-lang.org> | 2023-10-10 20:52:53 +0900 |
| commit | 84f2aabd272a54e79979795d2d405090704a1d07 (patch) | |
| tree | b01a208366c6e462236c784376ea404ada9a33e8 /ext | |
| parent | e031eff34387f300be27c24a725ddaa17f18f7e3 (diff) | |
merge revision(s) ada9f8a9f78b3ccd8a5187775d06f45eb9f636f5: [Backport #18914]
[ruby/fiddle] closure: follow variable name change
GitHub: GH-102
https://github.com/ruby/fiddle/commit/2530496602
---
ext/fiddle/closure.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/fiddle/closure.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/closure.c b/ext/fiddle/closure.c index 3679e5c9ad..27f448a24f 100644 --- a/ext/fiddle/closure.c +++ b/ext/fiddle/closure.c @@ -276,7 +276,7 @@ initialize(int rbargc, VALUE argv[], VALUE self) result = ffi_prep_closure_loc(pcl, cif, callback, (void *)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) { |
