[前][次][番号順一覧][スレッド一覧]

ruby-changes:59215

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 12 Dec 2019 14:23:36 +0900 (JST)
Subject: [ruby-changes:59215] f40143fe7c (master): fix arity mismatch

https://git.ruby-lang.org/ruby.git/commit/?id=f40143fe7c

From f40143fe7c55e3b2209f57e7ec4b3ad1d9468a1e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Thu, 12 Dec 2019 12:37:58 +0900
Subject: fix arity mismatch

I missed this in bc3e7924bc66d3ef77b219c72f3e59cc154550a3 because the
function is inside of a #ifdef.

diff --git a/gc.c b/gc.c
index 493a156..cbfd3d9 100644
--- a/gc.c
+++ b/gc.c
@@ -11681,7 +11681,7 @@ rb_gcdebug_print_obj_condition(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L11681
 }
 
 static VALUE
-gcdebug_sentinel(VALUE obj, VALUE name)
+gcdebug_sentinel(RB_BLOCK_CALL_FUNC_ARGLIST(obj, name))
 {
     fprintf(stderr, "WARNING: object %s(%p) is inadvertently collected\n", (char *)name, (void *)obj);
     return Qnil;
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]