ruby-changes:74097
From: Nobuyoshi <ko1@a...>
Date: Tue, 18 Oct 2022 17:22:01 +0900 (JST)
Subject: [ruby-changes:74097] 091e3522d7 (master): fiddle: use the old rb_ary_tmp_new() alias
https://git.ruby-lang.org/ruby.git/commit/?id=091e3522d7 From 091e3522d709160ebb4cb58794b10b3ab08f163b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 18 Oct 2022 10:49:47 +0900 Subject: fiddle: use the old rb_ary_tmp_new() alias Fiddle is a gem and has the external upstream which supports older versions of Ruby. --- ext/fiddle/closure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) https://github.com/ruby/ruby/blob/trunk/ext/fiddle/closure.c#L74 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; -- cgit v1.2.3 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/