diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 03:23:37 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-11 03:23:37 +0000 |
commit | e2bc9db763f34fe935909891d4131c9bd32cac91 (patch) | |
tree | 4b9d6a3c4744a8ddca9efee2eb7040b7c2b242e0 | |
parent | cc29e1af24e5ba0a420c255809abd60ff7f617d8 (diff) |
merge revision(s) 22679:
* 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().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@24843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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[]; |