ruby-changes:66862
From: S-H-GAMELINKS <ko1@a...>
Date: Thu, 22 Jul 2021 14:02:46 +0900 (JST)
Subject: [ruby-changes:66862] e882905d0d (master): Refactor sym_each_i function
https://git.ruby-lang.org/ruby.git/commit/?id=e882905d0d From e882905d0d67acd4ab8996c8456e1a4285f34dee Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS <gamelinks007@g...> Date: Sun, 11 Jul 2021 13:56:03 +0900 Subject: Refactor sym_each_i function --- range.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/range.c b/range.c index 2939ef3..7a297b1 100644 --- a/range.c +++ b/range.c @@ -781,8 +781,7 @@ each_i(VALUE v, VALUE arg) https://github.com/ruby/ruby/blob/trunk/range.c#L781 static int sym_each_i(VALUE v, VALUE arg) { - rb_yield(rb_str_intern(v)); - return 0; + return each_i(rb_str_intern(v), arg); } /* -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/