diff options
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c index 2a94aa388f..af9dc0fd2b 100644 --- a/enumerator.c +++ b/enumerator.c @@ -1223,7 +1223,7 @@ enumerator_size(VALUE obj) argc = (int)RARRAY_LEN(e->args); argv = RARRAY_CONST_PTR(e->args); } - size = rb_check_funcall(e->size, id_call, argc, argv); + size = rb_check_funcall_kw(e->size, id_call, argc, argv, e->kw_splat); if (size != Qundef) return size; return e->size; } |