summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorSzabolcs Berecz <szabolcs.berecz@gmail.com>2011-12-25 01:37:02 +0100
committerSzabolcs Berecz <szabolcs.berecz@gmail.com>2011-12-25 01:39:49 +0100
commit460bbc1276fb4ba83b9bcbdc7f7ba475b352b7c6 (patch)
tree9be8bb2c66d46e9a19184986f66559a0efefe8f4 /test/pending
parent5ee9a14a489c6e56c331914e9db258c0473d4d23 (diff)
downloadscala-460bbc1276fb4ba83b9bcbdc7f7ba475b352b7c6.tar.gz
scala-460bbc1276fb4ba83b9bcbdc7f7ba475b352b7c6.tar.bz2
scala-460bbc1276fb4ba83b9bcbdc7f7ba475b352b7c6.zip
fixes #5104 and related NaN ordering inconsistencies
The bug was caused by the inconsistency between j.l.Math.min() and j.l.Double.compareTo() wrt NaN (j.l.Math.min() considers NaN to be less than any other value while j.l.Double.compareTo() says it's greater...) The fix changes Ordering.{FloatOrdering,DoubleOrdering) to base it's results on primitive comparisons and math.{min,max} instead of j.l.{Float,Double}.compareTo()
Diffstat (limited to 'test/pending')
0 files changed, 0 insertions, 0 deletions