Merge branch 'master' of github.com:jedmccaleb/NewCoin

This commit is contained in:
JoelKatz
2013-01-22 20:43:26 -08:00

View File

@@ -554,10 +554,9 @@ Amount.prototype.add = function (v) {
result._offset = o1; result._offset = o1;
result._value = v1.add(v2); result._value = v1.add(v2);
result._is_negative = result._value.compareTo(BigInteger.ZERO) < 0; result._is_negative = result._value.compareTo(BigInteger.ZERO) < 0;
if (result._is_negative) { if (result._is_negative) {
result._value = result._value.negate(); result._value = result._value.negate();
result._is_negative = false;
} }
result._currency = this._currency.clone(); result._currency = this._currency.clone();