summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-18 10:49:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-18 17:21:45 +0900
commit091e3522d709160ebb4cb58794b10b3ab08f163b (patch)
tree9b6f6d82c115d860d925d5b985bbf036b869bcb0 /ext/fiddle
parent007946c27d7445e25569be58e255f7bb08e8bd75 (diff)
fiddle: use the old rb_ary_tmp_new() alias
Fiddle is a gem and has the external upstream which supports older versions of Ruby.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6576
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/closure.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/closure.c b/ext/fiddle/closure.c
index 6770162b94..83fa752b6d 100644
--- a/ext/fiddle/closure.c
+++ b/ext/fiddle/closure.c
@@ -74,7 +74,7 @@ with_gvl_callback(void *ptr)
VALUE rbargs = rb_iv_get(self, "@args");
VALUE ctype = rb_iv_get(self, "@ctype");
int argc = RARRAY_LENINT(rbargs);
- VALUE params = rb_ary_hidden_new(argc);
+ VALUE params = rb_ary_tmp_new(argc);
VALUE ret;
VALUE cPointer;
int i, type;