Skip to content

Commit

Permalink
derToJose: this is just a while loop now
Browse files Browse the repository at this point in the history
  • Loading branch information
omsmith committed Jun 20, 2016
1 parent eed19df commit 37b464f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ecdsa-sig-formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function derToJose(signature, alg) {

function countPadding(buf, start, stop) {
var padding = 0;
for (var n = stop; start + padding < n && buf[start + padding] === 0;) {
while (start + padding < stop && buf[start + padding] === 0) {
++padding;
}

Expand Down

0 comments on commit 37b464f

Please sign in to comment.