Comparing version 0.11.1 to 0.11.2
@@ -186,2 +186,6 @@ // Utils | ||
this.length--; | ||
return this._normSign(); | ||
}; | ||
BN.prototype._normSign = function _normSign() { | ||
// -0 = 0 | ||
@@ -393,3 +397,3 @@ if (this.length === 1 && this.words[0] === 0) | ||
this.sign = !this.sign; | ||
return this; | ||
return this._normSign(); | ||
@@ -401,3 +405,3 @@ // positive + negative | ||
num.sign = true; | ||
return r; | ||
return r._normSign(); | ||
} | ||
@@ -468,3 +472,3 @@ | ||
num.sign = true; | ||
return r; | ||
return r._normSign(); | ||
@@ -476,3 +480,3 @@ // -this - num = -(this + num) | ||
this.sign = true; | ||
return this; | ||
return this._normSign(); | ||
} | ||
@@ -999,3 +1003,3 @@ | ||
var x2 = new BN(0); | ||
while (a.cmpn(1) !== 0 && b.cmpn(1) !== 0) { | ||
while (a.cmpn(1) > 0 && b.cmpn(1) > 0) { | ||
while (a.isEven()) { | ||
@@ -1002,0 +1006,0 @@ a.ishrn(1); |
{ | ||
"name": "bn.js", | ||
"version": "0.11.1", | ||
"version": "0.11.2", | ||
"description": "Big number implementation in pure javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/bn.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54194
1740