1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix arity mismatch

I missed this in bc3e7924bc because the
function is inside of a #ifdef.
This commit is contained in:
卜部昌平 2019-12-12 12:37:58 +09:00
parent 12de92a368
commit f40143fe7c

2
gc.c
View file

@ -11681,7 +11681,7 @@ rb_gcdebug_print_obj_condition(VALUE obj)
}
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;