From baeb828c03e96b1f78c296fe4e12602e57497401 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 12 Apr 2007 07:06:17 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ compile.c | 2 +- version.h | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index faf7133e92..17b92782d5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Apr 12 16:04:31 2007 Koichi Sasada + + * compile.c (iseq_compile_each): check node->nd_state == 1, not !0. + Wed Apr 11 16:35:16 2007 NAKAMURA Usaku * win32/win32.[ch] (rb_w32_enter_critical, rb_w32_leave_critical): no 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); } diff --git a/version.h b/version.h index 0abf460c93..255654782c 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-04-11" +#define RUBY_RELEASE_DATE "2007-04-12" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070411 +#define RUBY_RELEASE_CODE 20070412 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 4 -#define RUBY_RELEASE_DAY 11 +#define RUBY_RELEASE_DAY 12 RUBY_EXTERN const char ruby_version[]; RUBY_EXTERN const char ruby_release_date[];