From 10935c17737942f52b2d1edc68e918bb12627e56 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Mon, 10 Dec 2012 17:02:01 -0800 Subject: [PATCH] Fix is_negative for new unified neg. number handling. --- src/js/amount.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/amount.js b/src/js/amount.js index 2c8978cbf..2ad363fc5 100644 --- a/src/js/amount.js +++ b/src/js/amount.js @@ -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 };