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:
parent
a607c866dc
commit
7b5c2d3f9e
@ -2575,7 +2575,7 @@ enum_chain_enum_size(VALUE obj, VALUE args, VALUE eobj)
|
|||||||
static VALUE
|
static VALUE
|
||||||
enum_chain_yield_block(VALUE arg, VALUE block, int argc, VALUE *argv)
|
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
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user