summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-27 19:15:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-27 19:15:29 +0000
commit4148ae45cf820258788c8b847125214dd66160aa (patch)
tree7d2951f8bb98af5548f0031ae8b39aa1dee796f6 /eval.c
parent1d1111067f92f76972292e360139606a6af04d94 (diff)
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 8d64bf6bbd..d93423b485 100644
--- a/eval.c
+++ b/eval.c
@@ -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)