bn.js 4.12.1 → 4.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/bn.js +1 -0
  2. package/package.json +1 -1
package/lib/bn.js CHANGED
@@ -1921,6 +1921,7 @@
1921
1921
  this.words[i] = carry;
1922
1922
  this.length++;
1923
1923
  }
1924
+ this.length = num === 0 ? 1 : this.length;
1924
1925
 
1925
1926
  return this;
1926
1927
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bn.js",
3
- "version": "4.12.1",
3
+ "version": "4.12.2",
4
4
  "description": "Big number implementation in pure javascript",
5
5
  "main": "lib/bn.js",
6
6
  "scripts": {