зеркало из https://github.com/github/ruby.git
* compile.c (iseq_compile_each): fix type error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
30ab3f75f9
Коммит
35ecb83d41
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Jun 27 04:23:47 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* compile.c (iseq_compile_each): fix type error.
|
||||||
|
|
||||||
Wed Jun 27 03:26:15 2007 Koichi Sasada <ko1@atdot.net>
|
Wed Jun 27 03:26:15 2007 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* compile.c (compile_massign), insns.def (expandarray): support
|
* compile.c (compile_massign), insns.def (expandarray): support
|
||||||
|
|
|
@ -3715,7 +3715,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
||||||
}
|
}
|
||||||
case NODE_YIELD:{
|
case NODE_YIELD:{
|
||||||
DECL_ANCHOR(args);
|
DECL_ANCHOR(args);
|
||||||
int argc;
|
VALUE argc;
|
||||||
unsigned long flag = 0;
|
unsigned long flag = 0;
|
||||||
|
|
||||||
if (iseq->type == ISEQ_TYPE_TOP || iseq->type == ISEQ_TYPE_CLASS) {
|
if (iseq->type == ISEQ_TYPE_TOP || iseq->type == ISEQ_TYPE_CLASS) {
|
||||||
|
@ -3726,7 +3726,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
|
||||||
argc = setup_args(iseq, args, node->nd_head, &flag);
|
argc = setup_args(iseq, args, node->nd_head, &flag);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
argc = 0;
|
argc = INT2FIX(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ADD_SEQ(ret, args);
|
ADD_SEQ(ret, args);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче