diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-20 17:03:41 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-20 17:03:41 +0000 |
commit | f4d9d3d39b2018ea5330c1b21db722cd29ca11b4 (patch) | |
tree | 387fa05bd22648f50e6df4a033a4e975900d0692 | |
parent | bf6575ef62b4521d6c1d45371372dc1c1e74f18e (diff) | |
download | ruby-f4d9d3d39b2018ea5330c1b21db722cd29ca11b4.tar.gz |
* hash.c (hash_equal): should call rb_eql when argument eql is set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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[]; |