summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-11-02 04:44:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-11-02 04:44:52 +0000
commit07c4bb10e093f1d296c92492d7340fec090b7bf3 (patch)
tree6ac1a3d9389f8ca7acda2fcc0114edbc02895b7d /eval.c
parent030204ccf377c510fc6c08b8b86f72b1db5b017c (diff)
* eval.c (rb_call0): fixed bug of zsuper with both of opt and rest.
fixed: [ruby-list:42928] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 0f462a3e23..727a9fbca4 100644
--- a/eval.c
+++ b/eval.c
@@ -5665,6 +5665,10 @@ formal_assign(VALUE recv, NODE *node, int argc, const VALUE *argv, VALUE *local_
}
if (opt) {
rb_eval(recv, opt);
+ while (opt) {
+ ++i;
+ opt = opt->nd_next;
+ }
}
argc = ac + npost;
}