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

Reuse rb_method_call_kw function

This commit is contained in:
S-H-GAMELINKS 2022-09-24 22:35:10 +09:00 committed by Samuel Williams
parent 08476c4579
commit 205c252ec7
Notes: git 2022-09-25 07:11:37 +09:00

3
proc.c
View file

@ -2452,8 +2452,7 @@ method_clone(VALUE self)
static VALUE
rb_method_call_pass_called_kw(int argc, const VALUE *argv, VALUE method)
{
VALUE procval = rb_block_given_p() ? rb_block_proc() : Qnil;
return rb_method_call_with_block_kw(argc, argv, method, procval, RB_PASS_CALLED_KEYWORDS);
return rb_method_call_kw(argc, argv, method, RB_PASS_CALLED_KEYWORDS);
}
VALUE