summaryrefslogtreecommitdiff
path: root/src/partest
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-09-09 13:04:31 +0200
committerJason Zaugg <jzaugg@gmail.com>2012-09-09 13:04:31 +0200
commit21bd081540413a8625247d2e40506112cc1ea218 (patch)
treefa646e5bbd367dc62f9dd87ae0a7c8bc36208602 /src/partest
parentaedb8db47338637430672b145cfc11e8d89441b9 (diff)
downloadscala-21bd081540413a8625247d2e40506112cc1ea218.tar.gz
scala-21bd081540413a8625247d2e40506112cc1ea218.tar.bz2
scala-21bd081540413a8625247d2e40506112cc1ea218.zip
Improve Constant#hashCode
- Incorporate `tag`, which is considered by equals, to reduce collisions. - Use the result of floatToRawIntBits(value) / doubleToRawLongBits(value), rather than value. This wasn't strictly necessary as (0d.## == (-0d).##) but this is more obviously correct.
Diffstat (limited to 'src/partest')
0 files changed, 0 insertions, 0 deletions