Some minor cleanups.

This commit is contained in:
Jürg Lehni 2016-01-26 16:29:13 +01:00
parent 46f415ca81
commit 7781ecb76a
2 changed files with 9 additions and 9 deletions

View file

@ -271,10 +271,10 @@ Base.exports.PaperScript = (function() {
base64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
value = (Math.abs(value) << 1) + (value < 0 ? 1 : 0);
while (value || !res) {
var next = value & ((1 << 5) - 1);
var next = value & (32 - 1);
value >>= 5;
if (value)
next |= (1 << 5);
next |= 32;
res += base64[next];
}
return res;