diff options
author | NARUSE, Yui <[email protected]> | 2023-03-08 12:02:22 +0900 |
---|---|---|
committer | NARUSE, Yui <[email protected]> | 2023-03-08 12:02:22 +0900 |
commit | 59eb18037ff92839be48fb6c46ff0acc179b4f4c (patch) | |
tree | d68b20c91b3030d5a10f77c430e63448079f1745 /numeric.c | |
parent | 4d75035e1762a23d38c5192b30bb47f40b752bee (diff) |
merge revision(s) dd28c55a7cd6780dad637b4d6a20507fbfc6af4a: [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(-)
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 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); |