summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/BigInt.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/scala/BigInt.scala b/src/library/scala/BigInt.scala
index bcdff55261..8aa10b44c4 100644
--- a/src/library/scala/BigInt.scala
+++ b/src/library/scala/BigInt.scala
@@ -123,6 +123,7 @@ class BigInt(val bigInteger: BigInteger) extends java.lang.Number {
/** Compares this BigInt with the specified value for equality.
*/
override def equals (that: Any): boolean = that match {
+ case that: BigInt => this equals that
case that: java.lang.Double => this.bigInteger.doubleValue == that.doubleValue
case that: java.lang.Float => this.bigInteger.floatValue == that.floatValue
case that: java.lang.Number => this equals BigInt(that.longValue)