aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lvm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lvm.js b/src/lvm.js
index 8ca7b98..0d30484 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -737,9 +737,9 @@ const luaV_lessequal = function(L, l, r) {
if (res >= 0)
return res ? 1 : 0;
}
-
+ /* try 'lt': */
L.ci.callstatus |= lstate.CIST_LEQ; /* mark it is doing 'lt' for 'le' */
- res = ltm.luaT_callorderTM(L, l, r, ltm.TMS.TM_LT);
+ res = ltm.luaT_callorderTM(L, r, l, ltm.TMS.TM_LT);
L.ci.callstatus ^= lstate.CIST_LEQ; /* clear mark */
if (res < 0)
ldebug.luaG_ordererror(L, l, r);