[Pkg-javascript-commits] [uglifyjs] 03/77: fix base54
Jonas Smedegaard
dr at jones.dk
Tue May 19 00:02:26 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v2.4.18
in repository uglifyjs.
commit fe06fc85d3324b13518c8d44977dcd5ac19f9bbf
Author: Cheng Liangyu <clyfish at gmail.com>
Date: Mon Dec 1 13:16:44 2014 +0800
fix base54
---
lib/scope.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/scope.js b/lib/scope.js
index 6f29921..d252d53 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git
More information about the Pkg-javascript-commits
mailing list