From 9a3c95285ffa95eacf586b19b955f9014f4975f0 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 22 May 2017 01:25:20 +1000 Subject: src/lobject.js: MAXBY10 should be lower integer bound --- src/lobject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3-70-g09d2