diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-18 03:01:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-18 03:01:58 +0000 |
commit | 3bcf9fb53e4b9efabb15a3091fddfb68e5b6fbbe (patch) | |
tree | ecf199a6ec42abd624f2c79c8df435f8dd528764 /internal.h | |
parent | 1e98a25e9fff7e4c9c858f67c9ca7c6b9ee793f8 (diff) | |
download | ruby-3bcf9fb53e4b9efabb15a3091fddfb68e5b6fbbe.tar.gz |
hash.c: same hash values with Float#hash
* hash.c (rb_any_hash): use same hash values with Float#hash so
that -0.0 and +0.0 will be identical.
[ruby-core:68541] [Bug #10979]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 953db1b792..e6335c06ee 100644 --- a/internal.h +++ b/internal.h @@ -885,6 +885,7 @@ double ruby_float_mod(double x, double y); int rb_num_negative_p(VALUE); VALUE rb_int_succ(VALUE num); VALUE rb_int_pred(VALUE num); +VALUE rb_dbl_hash(double d); #if USE_FLONUM #define RUBY_BIT_ROTL(v, n) (((v) << (n)) | ((v) >> ((sizeof(v) * 8) - n))) |