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)