fix base54
This commit is contained in:
parent
f36a1eaa8b
commit
fe06fc85d3
|
|
@ -471,7 +471,9 @@ var base54 = (function() {
|
|||
base54.freq = function(){ return frequency };
|
||||
function base54(num) {
|
||||
var ret = "", base = 54;
|
||||
num++;
|
||||
do {
|
||||
num--;
|
||||
ret += String.fromCharCode(chars[num % base]);
|
||||
num = Math.floor(num / base);
|
||||
base = 64;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user