diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-12 07:06:17 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-04-12 07:06:17 +0000 |
commit | baeb828c03e96b1f78c296fe4e12602e57497401 (patch) | |
tree | a28491fc57c491748d1d3c6f1b22e7fb5bdf5cb4 /compile.c | |
parent | 314734add8ad699b1de13c3382e79dca6cca903a (diff) | |
download | ruby-baeb828c03e96b1f78c296fe4e12602e57497401.tar.gz |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |