summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-27 22:48:07 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-27 22:48:07 +0000
commit7b5c2d3f9e7071a93b30f038ad07f0b104bb7e15 (patch)
tree99da90d460768aa05104464437bc7e17fe3499f6 /enumerator.c
parenta607c866dc3b8c22479826eeda1f20f87d836fd6 (diff)
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
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index 10b395f..7cae81e 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -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