aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-22 01:25:20 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-22 01:25:20 +1000
commit9a3c95285ffa95eacf586b19b955f9014f4975f0 (patch)
tree10721ab713fc70dfcc6005946c500d544e75157c
parent64c25a472882364e12e1f42bd8c02e26e7895d55 (diff)
downloadfengari-9a3c95285ffa95eacf586b19b955f9014f4975f0.tar.gz
fengari-9a3c95285ffa95eacf586b19b955f9014f4975f0.tar.bz2
fengari-9a3c95285ffa95eacf586b19b955f9014f4975f0.zip
src/lobject.js: MAXBY10 should be lower integer bound
-rw-r--r--src/lobject.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 6ba225d..79496d5 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -372,7 +372,7 @@ const l_str2d = function(s) {
return end;
};
-const MAXBY10 = llimit.MAX_INT / 10;
+const MAXBY10 = Math.floor(llimit.MAX_INT / 10);
const MAXLASTD = llimit.MAX_INT % 10;
const l_str2int = function(s) {