diff options
| author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-14 18:53:40 +0000 |
|---|---|---|
| committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-14 18:53:40 +0000 |
| commit | 603e226d2dbffd3a91bbcf47775e8137a9889ff2 (patch) | |
| tree | 1f1c3bfccf90207a542fce694d9040315457bfe1 /ChangeLog | |
| parent | 6e34d588eca9bcd8bee206ae6ad2baa3e327b968 (diff) | |
| download | ruby-603e226d2dbffd3a91bbcf47775e8137a9889ff2.tar.gz ruby-603e226d2dbffd3a91bbcf47775e8137a9889ff2.tar.xz ruby-603e226d2dbffd3a91bbcf47775e8137a9889ff2.zip | |
* hash.c (rb_hash): always return a fixnum value because a return
value of rb_hash may be used as a hash value itself and bignums have
no unique VALUE.
* test/ruby/test_hash.rb: add a test for above.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,11 @@ +Sun Feb 15 03:50:21 2009 Yusuke Endoh <mame@tsg.ne.jp> + + * hash.c (rb_hash): always return a fixnum value because a return + value of rb_hash may be used as a hash value itself and bignums have + no unique VALUE. + + * test/ruby/test_hash.rb: add a test for above. + Sun Feb 15 00:45:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * array.c (rb_ary_uniq_bang, rb_ary_uniq): unique by the result of |
