diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | hash.c | 5 | ||||
-rw-r--r-- | version.h | 6 |
3 files changed, 11 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Fri Sep 21 02:02:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org> + + * hash.c (hash_equal): should call rb_eql when argument eql is set. + Thu Sep 20 17:28:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * io.c (popen_exec), process.c (rb_spawn): stop other threads before @@ -1398,7 +1398,10 @@ hash_equal(VALUE hash1, VALUE hash2, int eql) if (!rb_respond_to(hash2, rb_intern("to_hash"))) { return Qfalse; } - return rb_equal(hash2, hash1); + if (eql) + return rb_eql(hash2, hash1); + else + return rb_equal(hash2, hash1); } if (RHASH_SIZE(hash1) != RHASH_SIZE(hash2)) return Qfalse; @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-09-20" +#define RUBY_RELEASE_DATE "2007-09-21" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070920 +#define RUBY_RELEASE_CODE 20070921 #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 9 -#define RUBY_RELEASE_DAY 20 +#define RUBY_RELEASE_DAY 21 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |