diff options
author | Szabolcs Berecz <szabolcs.berecz@gmail.com> | 2011-12-25 01:37:02 +0100 |
---|---|---|
committer | Szabolcs Berecz <szabolcs.berecz@gmail.com> | 2011-12-25 01:39:49 +0100 |
commit | 460bbc1276fb4ba83b9bcbdc7f7ba475b352b7c6 (patch) | |
tree | 9be8bb2c66d46e9a19184986f66559a0efefe8f4 /test/pending | |
parent | 5ee9a14a489c6e56c331914e9db258c0473d4d23 (diff) | |
download | scala-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