Comparing version 0.3.0 to 0.3.1
@@ -538,6 +538,6 @@ function assert(val, msg) { | ||
if (s !== 0) { | ||
var prep = []; | ||
for (var i = this.words.length - 1; i >= 0; i--) | ||
this.words[i + s] = this.words[i]; | ||
for (var i = 0; i < s; i++) | ||
prep.push(0); | ||
this.words = prep.concat(this.words); | ||
this.words[i] = 0; | ||
this.length = this.words.length; | ||
@@ -565,4 +565,5 @@ } | ||
hint = Math.max(0, hint); | ||
for (var i = 0; i < s; i++) | ||
this.words.shift(); | ||
for (var i = s; i <= this.words.length; i++) | ||
this.words[i - s] = this.words[i]; | ||
this.words.length = i - s - 1; | ||
this.length = this.words.length; | ||
@@ -569,0 +570,0 @@ } |
{ | ||
"name": "bn.js", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"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
34803
1135