summaryrefslogtreecommitdiff
path: root/src/library/scala/math/BigDecimal.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-01-13 14:38:37 +0000
committerPaul Phillips <paulp@improving.org>2010-01-13 14:38:37 +0000
commit4f2bcd1af4fc12765aea7975a97357274087d392 (patch)
tree9e1fdcc86f1cfc827e283356a33aa47ec2770850 /src/library/scala/math/BigDecimal.scala
parent1b97738fcd26ad19cc5c3779409152c2ca88f295 (diff)
downloadscala-4f2bcd1af4fc12765aea7975a97357274087d392.tar.gz
scala-4f2bcd1af4fc12765aea7975a97357274087d392.tar.bz2
scala-4f2bcd1af4fc12765aea7975a97357274087d392.zip
A variety of bugfixes discovered by findbugs.
examples of equality comparisons which are guaranteed to return false because someone is not comparing what they think they're comparing.
Diffstat (limited to 'src/library/scala/math/BigDecimal.scala')
-rw-r--r--src/library/scala/math/BigDecimal.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/math/BigDecimal.scala b/src/library/scala/math/BigDecimal.scala
index 2f3c7f131b..6bd6b33484 100644
--- a/src/library/scala/math/BigDecimal.scala
+++ b/src/library/scala/math/BigDecimal.scala
@@ -100,7 +100,7 @@ object BigDecimal
*/
def apply(x: Array[Char]): BigDecimal = apply(x, defaultMathContext)
def apply(x: Array[Char], mc: MathContext): BigDecimal =
- new BigDecimal(new BigDec(x.toString, mc), mc)
+ new BigDecimal(new BigDec(x.mkString, mc), mc)
/** Translates the decimal String representation of a <code>BigDecimal</code>
* into a <code>BigDecimal</code>.