diff options
author | Sébastien Doeraene <sjrdoeraene@gmail.com> | 2016-04-21 15:06:25 +0200 |
---|---|---|
committer | Sébastien Doeraene <sjrdoeraene@gmail.com> | 2016-04-21 15:06:25 +0200 |
commit | 8a4653637a2b693cdcc730a93e17badaac14d56e (patch) | |
tree | 9bb1bd0aa5d12a7b757a9cab51e0a07e2bf7072e /test/files/run/hashCodeStatics.scala | |
parent | 4f2a20e843c0f07352dff87767cad13636942a3e (diff) | |
download | scala-8a4653637a2b693cdcc730a93e17badaac14d56e.tar.gz scala-8a4653637a2b693cdcc730a93e17badaac14d56e.tar.bz2 scala-8a4653637a2b693cdcc730a93e17badaac14d56e.zip |
Bring Statics.doubleHash in sync with BoxesRunTime.hashFromDouble.
The two algorithms were different, and could result in different
hash codes for some values, namely, valid long values that were
not also valid int values.
The other two functions `longHash` and `floatHash` are rewritten
to keep a common style with `doubleHash`, but their algorithm
does not change.
Diffstat (limited to 'test/files/run/hashCodeStatics.scala')
0 files changed, 0 insertions, 0 deletions