From 35ecb83d413f5d7143dd269b2d591cb742526a90 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 26 Jun 2007 19:24:40 +0000 Subject: * 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 --- compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 43cda0c083..a710f760d9 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); -- cgit v1.2.3