diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-07 07:41:36 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-07 07:41:36 +0000 |
commit | 5b81033d33441337bb7b76fa1a3df10ab84ee3cf (patch) | |
tree | e9a0d0c360b494c0c4e0fce7d97a0d48e9af27da /src/library | |
parent | a197e61bc8068f97767a62f1bf5cf6b35ccfba86 (diff) | |
download | scala-5b81033d33441337bb7b76fa1a3df10ab84ee3cf.tar.gz scala-5b81033d33441337bb7b76fa1a3df10ab84ee3cf.tar.bz2 scala-5b81033d33441337bb7b76fa1a3df10ab84ee3cf.zip |
This might fix things until the unreachable cod...
This might fix things until the unreachable code problem is resolved.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/jvm/scala/Math.scala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/library/jvm/scala/Math.scala b/src/library/jvm/scala/Math.scala index da1e3bd367..c27b740842 100644 --- a/src/library/jvm/scala/Math.scala +++ b/src/library/jvm/scala/Math.scala @@ -176,17 +176,17 @@ object Math { def min(x: Double, y: Double): Double = java.lang.Math.min(x, y) def signum(x: Double): Double = x match { case 0 => 0 - case _ if x < 0 => -1.0 - case _ if x > 0 => 1.0 } + case y if y < 0 => -1.0 + case y if y > 0 => 1.0 } def signum(x: Float): Float = x match { case 0f => 0f - case _ if x < 0f => -1.0f - case _ if x > 0f => 1.0f } + case y if y < 0f => -1.0f + case y if y > 0f => 1.0f } def signum(x: Long): Long = x match { case 0l => 0l - case _ if x < 0l => -1l - case _ if x > 0l => 1l } + case y if y < 0l => -1l + case y if y > 0l => 1l } def signum(x: Int): Int = x match { case 0 => 0 - case _ if x < 0 => -1 - case _ if x > 0 => 1} + case y if y < 0 => -1 + case y if y > 0 => 1} // from Java 1.5 // def log10(x: Double): Double = java.lang.Math.log10(x) |