Fix is_negative for new unified neg. number handling.

This commit is contained in:
Stefan Thomas
2012-12-10 17:02:01 -08:00
parent 2ce23c45b2
commit 10935c1773

View File

@@ -720,9 +720,7 @@ Amount.prototype.is_native = function () {
Amount.prototype.is_negative = function () {
return this._value instanceof BigInteger
? this.is_native
? this._value.compareTo(BigInteger.ZERO) < 0
: this._is_negative
? this._is_negative
: false; // NaN is not negative
};