diff --git a/headers.js b/headers.js index fe7fd36..645fa3e 100644 --- a/headers.js +++ b/headers.js @@ -112,16 +112,11 @@ function parse256 (buf) { else return null // build up a base-256 tuple from the least sig to the highest - var zero = false var tuple = [] for (var i = buf.length - 1; i > 0; i--) { var byte = buf[i] if (positive) tuple.push(byte) - else if (zero && byte === 0) tuple.push(0) - else if (zero) { - zero = false - tuple.push(0x100 - byte) - } else tuple.push(0xFF - byte) + else tuple.push(0xFF - byte) } var sum = 0