summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU.Nakamura <usa@ruby-lang.org>2023-10-10 20:52:53 +0900
committerU.Nakamura <usa@ruby-lang.org>2023-10-10 20:52:53 +0900
commit84f2aabd272a54e79979795d2d405090704a1d07 (patch)
treeb01a208366c6e462236c784376ea404ada9a33e8
parente031eff34387f300be27c24a725ddaa17f18f7e3 (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.c2
-rw-r--r--version.h2
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) {
diff --git a/version.h b/version.h
index fbd25f01e9..e462d5b488 100644
--- a/version.h
+++ b/version.h
@@ -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