diff options
author | mihaylov <mihaylov@epfl.ch> | 2005-10-03 21:58:32 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2005-10-03 21:58:32 +0000 |
commit | 47278930d16096b978a6eb899934ff66db51c465 (patch) | |
tree | 7ff5ae0055077c521c8d10b3e86a114cf8ff0501 | |
parent | 0c5513d5fc3092f650627c0d51b63ec087795944 (diff) | |
download | scala-47278930d16096b978a6eb899934ff66db51c465.tar.gz scala-47278930d16096b978a6eb899934ff66db51c465.tar.bz2 scala-47278930d16096b978a6eb899934ff66db51c465.zip |
fixed the infinite recursion in the math functions
-rw-r--r-- | sources/scala/runtime/compat/Math.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/scala/runtime/compat/Math.scala b/sources/scala/runtime/compat/Math.scala index 8b563416e2..c543a170a6 100644 --- a/sources/scala/runtime/compat/Math.scala +++ b/sources/scala/runtime/compat/Math.scala @@ -15,7 +15,7 @@ object Math { val MAX_INT = java.lang.Integer.MAX_VALUE; val MIN_INT = java.lang.Integer.MIN_VALUE; - def log(x: Double): Double = Math.log(x); - def max(x: Int, y: Int): Int = Math.max(x, y); - def sqrt(x: Double): Double = Math.sqrt(x); + def log(x: Double): Double = java.lang.Math.log(x); + def max(x: Int, y: Int): Int = java.lang.Math.max(x, y); + def sqrt(x: Double): Double = java.lang.Math.sqrt(x); } |