fix base54

This commit is contained in:
Cheng Liangyu
2014-12-01 13:16:44 +08:00
parent f36a1eaa8b
commit fe06fc85d3

View File

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