aboutsummaryrefslogtreecommitdiff
path: root/lib/scope.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scope.js')
-rw-r--r--lib/scope.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/scope.js b/lib/scope.js
index 6f29921f..d252d535 100644
--- a/lib/scope.js
+++ b/lib/scope.js
@@ -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;