1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2006-11-02 04:44:52 +00:00
parent 030204ccf3
commit 07c4bb10e0
2 changed files with 10 additions and 1 deletions

View file

@ -42,8 +42,13 @@ Wed Nov 1 02:22:31 2006 Akinori MUSHA <knu@iDaemons.org>
* ext/digest/digest.c (rb_digest_instance_equal): Allow comparing
a digest instance with another of a different class.
T
Wed Nov 1 01:05:13 2006 NAKAMURA Usaku <usa@ruby-lang.org>
Tue Oct 31 17:03:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (rb_call0): fixed bug of zsuper with both of opt and rest.
fixed: [ruby-list:42928]
ue Oct 31 17:03:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* time.c (time_dup): duplicate the class of original time.
[ruby-core:09357]

4
eval.c
View file

@ -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;
}