aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {