diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | class.c | 2 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | version.h | 8 |
4 files changed, 14 insertions, 6 deletions
@@ -1,3 +1,11 @@ +Fri Sep 11 11:56:53 2009 Akinori MUSHA <knu@iDaemons.org> + + * class.c (rb_singleton_class_clone): Qnil must be used for a null + class reference when we use NIL_P() to check class reference + validity. The bug was exposed by the spec test of Sequel. + + * eval.c (ruby_init): Use NEW_CREF(). + Thu Sep 10 10:53:03 2009 NAKAMURA Usaku <usa@ruby-lang.org> * io.c (rb_sysopen): workaround for MSVCRT's bug. @@ -153,7 +153,7 @@ rb_singleton_class_clone(obj) data.klass = obj; break; default: - data.klass = 0; + data.klass = Qnil; break; } @@ -1410,7 +1410,7 @@ ruby_init() rb_call_inits(); ruby_class = rb_cObject; ruby_frame->self = ruby_top_self; - ruby_top_cref = rb_node_newnode(NODE_CREF,rb_cObject,0,0); + ruby_top_cref = NEW_CREF(rb_cObject, 0); ruby_cref = ruby_top_cref; rb_define_global_const("TOPLEVEL_BINDING", rb_f_binding(ruby_top_self)); #ifdef __MACOS__ @@ -1,15 +1,15 @@ #define RUBY_VERSION "1.8.7" -#define RUBY_RELEASE_DATE "2009-09-10" +#define RUBY_RELEASE_DATE "2009-09-11" #define RUBY_VERSION_CODE 187 -#define RUBY_RELEASE_CODE 20090910 -#define RUBY_PATCHLEVEL 201 +#define RUBY_RELEASE_CODE 20090911 +#define RUBY_PATCHLEVEL 202 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_TEENY 7 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 9 -#define RUBY_RELEASE_DAY 10 +#define RUBY_RELEASE_DAY 11 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |