enumerator.c (enum_chain_yield_block): use predefined ID

No point in having rb_intern lookup and cache a predefined ID

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
normal 2018-11-27 22:48:07 +00:00
parent a607c866dc
commit 7b5c2d3f9e

View File

@ -2575,7 +2575,7 @@ enum_chain_enum_size(VALUE obj, VALUE args, VALUE eobj)
static VALUE
enum_chain_yield_block(VALUE arg, VALUE block, int argc, VALUE *argv)
{
return rb_funcallv(block, rb_intern("call"), argc, argv);
return rb_funcallv(block, id_call, argc, argv);
}
static VALUE