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 | 5ec50546b4bcd25a43116c45a33353f6fbc6833d (patch) | |
| tree | a28491fc57c491748d1d3c6f1b22e7fb5bdf5cb4 /compile.c | |
| parent | 9b8b440030169be58604a332fc617eefa2867009 (diff) | |
| download | ruby-5ec50546b4bcd25a43116c45a33353f6fbc6833d.tar.gz ruby-5ec50546b4bcd25a43116c45a33353f6fbc6833d.tar.xz ruby-5ec50546b4bcd25a43116c45a33353f6fbc6833d.zip | |
* compile.c (iseq_compile_each): check node->nd_state == 1, not !0.
git-svn-id: http://svn.ruby-lang.org/repos/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); } |
