From dd28c55a7cd6780dad637b4d6a20507fbfc6af4a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 17 Feb 2023 10:57:22 +0900 Subject: [Bug#19445] Fix keyword splat in enumerator Extracted arguments do not have keyword hash to splat. --- numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index d1316eb6e2..640ba469b4 100644 --- a/numeric.c +++ b/numeric.c @@ -3065,7 +3065,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); -- cgit v1.2.1