From 3157772347bb21c0e8125cae3620ad97307814ce Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 3 Jun 2008 15:22:47 +0000 Subject: [PATCH] explicitly specify the radix when parsing the arg to formatBytes() --- content/options.js | 2 +- content/util.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/options.js b/content/options.js index 65c44e6f..aa414e39 100644 --- a/content/options.js +++ b/content/options.js @@ -478,7 +478,7 @@ liberator.Options = function () //{{{ break; case "number": - value = parseInt(value); + value = parseInt(value); // deduce radix if (isNaN(value)) { diff --git a/content/util.js b/content/util.js index de107911..d0ffd2cb 100644 --- a/content/util.js +++ b/content/util.js @@ -104,7 +104,7 @@ liberator.util = { //{{{ { const unitVal = ["Bytes", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]; var unitIndex = 0; - var tmpNum = parseInt(num) || 0; + var tmpNum = parseInt(num, 10) || 0; var strNum = [tmpNum + ""]; if (humanReadable)