diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-27 19:15:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-27 19:15:29 +0000 |
commit | 4148ae45cf820258788c8b847125214dd66160aa (patch) | |
tree | 7d2951f8bb98af5548f0031ae8b39aa1dee796f6 /eval.c | |
parent | 1d1111067f92f76972292e360139606a6af04d94 (diff) | |
download | ruby-4148ae45cf820258788c8b847125214dd66160aa.tar.gz |
* eval.c (method_arity): used wrong Proc object. [ruby-talk:86504]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7601,7 +7601,7 @@ method_arity(method) return INT2FIX(0); case NODE_BMETHOD: case NODE_DMETHOD: - return proc_arity(method); + return proc_arity(body->nd_cval); default: body = body->nd_next; /* skip NODE_SCOPE */ if (nd_type(body) == NODE_BLOCK) |