1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2007-04-12 07:06:17 +00:00
parent 314734add8
commit baeb828c03
3 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Thu Apr 12 16:04:31 2007 Koichi Sasada <ko1@atdot.net>
* compile.c (iseq_compile_each): check node->nd_state == 1, not !0.
Wed Apr 11 16:35:16 2007 NAKAMURA Usaku <usa@ruby-lang.org> Wed Apr 11 16:35:16 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.[ch] (rb_w32_enter_critical, rb_w32_leave_critical): no * win32/win32.[ch] (rb_w32_enter_critical, rb_w32_leave_critical): no

View file

@ -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->loopval_popped = 0;
iseq->compile_data->ensure_node_stack = 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); ADD_INSNL(ret, nd_line(node), jump, next_label);
} }

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0" #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_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20070411 #define RUBY_RELEASE_CODE 20070412
#define RUBY_PATCHLEVEL 0 #define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0 #define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 4 #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_version[];
RUBY_EXTERN const char ruby_release_date[]; RUBY_EXTERN const char ruby_release_date[];