base58: use signum over compareTo
This commit is contained in:
parent
5f88cb8931
commit
baec325e6f
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ function encode(buffer) {
|
||||||
var result = new Buffer(buffer.length << 1)
|
var result = new Buffer(buffer.length << 1)
|
||||||
|
|
||||||
var i = result.length - 1
|
var i = result.length - 1
|
||||||
while (bi.compareTo(BigInteger.ZERO) > 0) {
|
while (bi.signum() > 0) {
|
||||||
var remainder = bi.mod(BASE)
|
var remainder = bi.mod(BASE)
|
||||||
bi = bi.divide(BASE)
|
bi = bi.divide(BASE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue