base58: use signum over compareTo

This commit is contained in:
Daniel Cousens 2014-05-31 11:25:11 +10:00
parent 5f88cb8931
commit baec325e6f

View file

@ -21,7 +21,7 @@ function encode(buffer) {
var result = new Buffer(buffer.length << 1)
var i = result.length - 1
while (bi.compareTo(BigInteger.ZERO) > 0) {
while (bi.signum() > 0) {
var remainder = bi.mod(BASE)
bi = bi.divide(BASE)