Code cleanup

This commit is contained in:
Jeff 2017-03-09 17:49:54 -08:00 committed by Jeff Parsons
commit 3a9cd5cf04
24 changed files with 17 additions and 33 deletions

View file

@ -182,8 +182,8 @@ class Str {
if (n < 0) {
n += Math.pow(radix, cch);
}
if (n < 0 || n >= Math.pow(radix, cch)) {
n = null;
if (n >= Math.pow(radix, cch)) {
cch = Math.ceil(Math.log(n) / Math.log(radix));
}
}
if (n == null) {