summaryrefslogtreecommitdiff
path: root/src/lvm.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/lvm.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/lvm.js')
-rw-r--r--src/lvm.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lvm.js b/src/lvm.js
index 1adea8d..ffc1d74 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -9,7 +9,7 @@ const lobject = require('./lobject.js');
const lfunc = require('./lfunc.js');
const lstate = require('./lstate.js');
const lstring = require('./lstring.js');
-const llimit = require('./llimit.js');
+const llimits = require('./llimits.js');
const ldo = require('./ldo.js');
const ltm = require('./ltm.js');
const ltable = require('./ltable.js');
@@ -245,7 +245,7 @@ const luaV_execute = function(L) {
if (op1.ttisinteger() && op2.ttisinteger()) {
L.stack[ra].setivalue(luaV_mod(L, op1.value, op2.value));
} else if ((numberop1 = tonumber(op1)) !== false && (numberop2 = tonumber(op2)) !== false) {
- L.stack[ra].setfltvalue(llimit.luai_nummod(L, numberop1, numberop2));
+ L.stack[ra].setfltvalue(llimits.luai_nummod(L, numberop1, numberop2));
} else {
ltm.luaT_trybinTM(L, op1, op2, L.stack[ra], ltm.TMS.TM_MOD);
}
@@ -726,10 +726,10 @@ const forlimit = function(obj, step) {
return false;
if (0 < n) {
- ilimit = llimit.LUA_MAXINTEGER;
+ ilimit = luaconf.LUA_MAXINTEGER;
if (step < 0) stopnow = true;
} else {
- ilimit = llimit.LUA_MININTEGER;
+ ilimit = luaconf.LUA_MININTEGER;
if (step >= 0) stopnow = true;
}
}