summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-12 07:06:17 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-12 07:06:17 +0000
commitbaeb828c03e96b1f78c296fe4e12602e57497401 (patch)
treea28491fc57c491748d1d3c6f1b22e7fb5bdf5cb4 /compile.c
parent314734add8ad699b1de13c3382e79dca6cca903a (diff)
* compile.c (iseq_compile_each): check node->nd_state == 1, not !0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index bba5e096c8..85160de2eb 100644
--- a/compile.c
+++ b/compile.c
@@ -2670,7 +2670,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
iseq->compile_data->loopval_popped = 0;
iseq->compile_data->ensure_node_stack = 0;
- if (type == NODE_OPT_N || node->nd_state) {
+ if (type == NODE_OPT_N || node->nd_state == 1) {
ADD_INSNL(ret, nd_line(node), jump, next_label);
}