summaryrefslogtreecommitdiff
path: root/src/dotnet-library
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-10-30 17:39:15 +0000
committermichelou <michelou@epfl.ch>2007-10-30 17:39:15 +0000
commitc1cb43d928cc6de8842a6b8f5e90a8abe409286e (patch)
treeaca763f3a63adbd42528fc5e1c9f3f4cc28ee369 /src/dotnet-library
parentf5aa270473e0c335bd1a7a6b7f10f87b54a5d45e (diff)
downloadscala-c1cb43d928cc6de8842a6b8f5e90a8abe409286e.tar.gz
scala-c1cb43d928cc6de8842a6b8f5e90a8abe409286e.tar.bz2
scala-c1cb43d928cc6de8842a6b8f5e90a8abe409286e.zip
fixed #202 (NaN), refactored code
Diffstat (limited to 'src/dotnet-library')
-rw-r--r--src/dotnet-library/scala/runtime/RichDouble.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotnet-library/scala/runtime/RichDouble.scala b/src/dotnet-library/scala/runtime/RichDouble.scala
index dceabc3eb9..6f22e8c836 100644
--- a/src/dotnet-library/scala/runtime/RichDouble.scala
+++ b/src/dotnet-library/scala/runtime/RichDouble.scala
@@ -1,7 +1,7 @@
/* __ *\
** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | **
+** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
@@ -18,7 +18,7 @@ final class RichDouble(x: Double) extends Proxy with Ordered[Double] {
def self: Any = x
// Ordered[Double].compare
- def compare (y: Double): Int = if (x < y) -1 else if (x > y) 1 else 0
+ def compare(y: Double): Int = if (x < y) -1 else if (x > y) 1 else 0
def min(y: Double): Double = Math.min(x, y)
def max(y: Double): Double = Math.max(x, y)