Mercurial > projects > dwt2
diff base/src/java/math/BigDecimal.d @ 112:9f4c18c268b2
Update to compile and execute with dmd 2.052.
author | kntroh |
---|---|
date | Wed, 16 Mar 2011 21:53:53 +0900 |
parents | 48d4ee626868 |
children |
line wrap: on
line diff
--- a/base/src/java/math/BigDecimal.d Sat Nov 13 14:15:51 2010 +0100 +++ b/base/src/java/math/BigDecimal.d Wed Mar 16 21:53:53 2011 +0900 @@ -45,7 +45,7 @@ * and bogus scale calculation. */ if (significand == 0) { - intVal = BigInteger.ZERO; + intVal = cast(BigInteger) BigInteger.ZERO; intCompact = 0; precision = 1; return; @@ -66,7 +66,7 @@ intVal = intVal.multiply(BigInteger.valueOf(2).pow(exponent)); } if (intVal.bitLength() <= MAX_BIGINT_BITS) { - intCompact = intVal.longValue(); + intCompact = cast(int)intVal.longValue(); } } this(String val){