mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 05:59:00 +02:00
merge revision(s) dd28c55a7c
: [Backport #19445]
[Bug#19445] Fix keyword splat in enumerator Extracted arguments do not have keyword hash to splat. --- numeric.c | 2 +- test/ruby/test_numeric.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)
This commit is contained in:
parent
4d75035e17
commit
59eb18037f
3 changed files with 5 additions and 2 deletions
|
@ -3056,7 +3056,7 @@ num_step(int argc, VALUE *argv, VALUE from)
|
|||
num_step_size, from, to, step, FALSE);
|
||||
}
|
||||
|
||||
return SIZED_ENUMERATOR(from, 2, ((VALUE [2]){to, step}), num_step_size);
|
||||
return SIZED_ENUMERATOR_KW(from, 2, ((VALUE [2]){to, step}), num_step_size, FALSE);
|
||||
}
|
||||
|
||||
desc = num_step_scan_args(argc, argv, &to, &step, TRUE, FALSE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue