summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-10-09 07:49:20 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-11-09 12:56:17 +0100
commit97a52383d4194678b781e8826c6512fc6fe40288 (patch)
tree1ddc466da9adde4e2025cddd591ad85e0b3ff0ac /src/lobject.js
parenta5d5b5f695ad557e25911f08be2d132ab1be658c (diff)
downloadfengari-97a52383d4194678b781e8826c6512fc6fe40288.tar.gz
fengari-97a52383d4194678b781e8826c6512fc6fe40288.tar.bz2
fengari-97a52383d4194678b781e8826c6512fc6fe40288.zip
Removed incorrect use of llimits.MAX/MIN_INT
llimit.js is renamed to llimits.js
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 895e310..9263cb1 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -12,7 +12,7 @@ const lstring = require('./lstring.js');
const ltable = require('./ltable.js');
const luaconf = require('./luaconf.js');
const lvm = require('./lvm.js');
-const llimit = require('./llimit.js');
+const llimits = require('./llimits.js');
const ltm = require('./ltm.js');
const CT = defs.constant_types;
const char = defs.char;
@@ -437,8 +437,8 @@ const l_str2d = function(s) {
return end;
};
-const MAXBY10 = Math.floor(llimit.MAX_INT / 10);
-const MAXLASTD = llimit.MAX_INT % 10;
+const MAXBY10 = Math.floor(llimits.MAX_INT / 10);
+const MAXLASTD = llimits.MAX_INT % 10;
const l_str2int = function(s) {
let i = 0;
@@ -648,7 +648,7 @@ const numarith = function(L, op, v1, v2) {
case defs.LUA_OPPOW: return Math.pow(v1, v2);
case defs.LUA_OPIDIV: return Math.floor(v1 / v2);
case defs.LUA_OPUNM: return -v1;
- case defs.LUA_OPMOD: return llimit.luai_nummod(L, v1, v2);
+ case defs.LUA_OPMOD: return llimits.luai_nummod(L, v1, v2);
default: assert(0);
}
};