summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-26 19:24:40 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-26 19:24:40 +0000
commit614663362abefd562a07852edb9b88991b458d25 (patch)
tree964bfa47bcb5cfb4b293d827aed5c6ba6ef7c4b6
parent3d37c182ca4c6cf50a69bb26d77c81ebb0808439 (diff)
downloadruby-614663362abefd562a07852edb9b88991b458d25.tar.gz
ruby-614663362abefd562a07852edb9b88991b458d25.tar.xz
ruby-614663362abefd562a07852edb9b88991b458d25.zip
* compile.c (iseq_compile_each): fix type error.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--compile.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b1a94ef94..61cbafa0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* compile.c (compile_massign), insns.def (expandarray): support
diff --git a/compile.c b/compile.c
index 43cda0c08..a710f760d 100644
--- a/compile.c
+++ b/compile.c
@@ -3715,7 +3715,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
case NODE_YIELD:{
DECL_ANCHOR(args);
- int argc;
+ VALUE argc;
unsigned long flag = 0;
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);
}
else {
- argc = 0;
+ argc = INT2FIX(0);
}
ADD_SEQ(ret, args);