* eval.c (formal_assign): need to pack rest arg information in
argc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ce99fd222e
commit
bd580c4855
@ -1,3 +1,8 @@
|
|||||||
|
Tue Nov 7 18:35:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (formal_assign): need to pack rest arg information in
|
||||||
|
argc.
|
||||||
|
|
||||||
Tue Nov 7 18:05:01 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Tue Nov 7 18:05:01 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/lib/tk/itemconfig.rb: minor bug fix.
|
* ext/tk/lib/tk/itemconfig.rb: minor bug fix.
|
||||||
|
15
eval.c
15
eval.c
@ -5689,17 +5689,12 @@ formal_assign(VALUE recv, NODE *node, int argc, const VALUE *argv, VALUE *local_
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
VALUE v;
|
VALUE v;
|
||||||
|
int n = 1;
|
||||||
|
|
||||||
if (argc > 0) {
|
v = rb_ary_new4(argc,argv);
|
||||||
int n = 1;
|
n += npost;
|
||||||
v = rb_ary_new4(argc,argv);
|
i += n*256;
|
||||||
n += npost;
|
i = -i;
|
||||||
i += n*256;
|
|
||||||
i = -i;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
v = rb_ary_new2(0);
|
|
||||||
}
|
|
||||||
assign(recv, node->nd_rest, v, 1);
|
assign(recv, node->nd_rest, v, 1);
|
||||||
}
|
}
|
||||||
return i;
|
return i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user