summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorben <torben.letorbi@gmail.com>2015-12-10 13:11:11 +0100
committerTorben <torben.letorbi@gmail.com>2015-12-10 13:11:11 +0100
commitbb039f8c2e6a7f224b75954775ee1985b0cd6a05 (patch)
treeb40d058a27ef62970bb195b4a0fdb6dfe2e2b4dc
parent453d138af0eb2c8072cd7858642d8241500759ba (diff)
downloadsjcl-bb039f8c2e6a7f224b75954775ee1985b0cd6a05.zip
sjcl-bb039f8c2e6a7f224b75954775ee1985b0cd6a05.tar.gz
sjcl-bb039f8c2e6a7f224b75954775ee1985b0cd6a05.tar.bz2
Remove leading-zero stripping from big number normalization
-rw-r--r--core/bn.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/bn.js b/core/bn.js
index 01dd349..4755f70 100644
--- a/core/bn.js
+++ b/core/bn.js
@@ -496,9 +496,6 @@ sjcl.bn.prototype = {
if (carry === -1) {
limbs[i-1] -= pv;
}
- while (limbs.length > 0 && limbs[limbs.length-1] === 0) {
- limbs.pop();
- }
return this;
},