summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-08-29 01:53:48 +0000
committerPaul Phillips <paulp@improving.org>2009-08-29 01:53:48 +0000
commit463be6731fcab426eeed0ce693fc4a2898f6d5e0 (patch)
tree83c23371766ab758f0965bf9c689b65ac8be5739
parenta1efb93af42eb87eac6343f23e98911aa0394a0f (diff)
downloadscala-463be6731fcab426eeed0ce693fc4a2898f6d5e0.tar.gz
scala-463be6731fcab426eeed0ce693fc4a2898f6d5e0.tar.bz2
scala-463be6731fcab426eeed0ce693fc4a2898f6d5e0.zip
Fix for #2304.
-rw-r--r--src/library/scala/BigDecimal.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/BigDecimal.scala b/src/library/scala/BigDecimal.scala
index 2526d461b2..ae008cce38 100644
--- a/src/library/scala/BigDecimal.scala
+++ b/src/library/scala/BigDecimal.scala
@@ -165,7 +165,7 @@ extends java.lang.Number
private implicit def bigdec2BigDecimal(x: BigDec): BigDecimal = new BigDecimal(x, mc)
/** Returns the hash code for this BigDecimal. */
- override def hashCode(): Int = this.bigDecimal.hashCode()
+ override def hashCode(): Int = doubleValue.hashCode()
/** Compares this BigDecimal with the specified value for equality.
* Will only claim equality with scala.BigDecimal and java.math.BigDecimal.