Browse Source

base58: use signum over compareTo

hk-custom-address
Daniel Cousens 11 years ago
parent
commit
baec325e6f
  1. 2
      src/base58.js

2
src/base58.js

@ -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)

Loading…
Cancel
Save