From c1cb43d928cc6de8842a6b8f5e90a8abe409286e Mon Sep 17 00:00:00 2001 From: michelou Date: Tue, 30 Oct 2007 17:39:15 +0000 Subject: fixed #202 (NaN), refactored code --- src/dotnet-library/scala/runtime/RichDouble.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dotnet-library') 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) -- cgit v1.2.3