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 | |
| 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(-)
| -rw-r--r-- | ext/fiddle/closure.c | 2 | ||||
| -rw-r--r-- | version.h | 2 |
2 files changed, 2 insertions, 2 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) { @@ -11,7 +11,7 @@ # define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR #define RUBY_VERSION_TEENY 4 #define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR -#define RUBY_PATCHLEVEL 241 +#define RUBY_PATCHLEVEL 242 #define RUBY_RELEASE_YEAR 2023 #define RUBY_RELEASE_MONTH 10 |
