aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lvm.c b/lvm.c
index 7550dcc8..add26942 100644
--- a/lvm.c
+++ b/lvm.c
@@ -754,10 +754,12 @@ void luaV_finishOp (lua_State *L) {
754 case OP_EQ: { /* note that 'OP_EQI'/'OP_EQK' cannot yield */ 754 case OP_EQ: { /* note that 'OP_EQI'/'OP_EQK' cannot yield */
755 int res = !l_isfalse(s2v(L->top - 1)); 755 int res = !l_isfalse(s2v(L->top - 1));
756 L->top--; 756 L->top--;
757#if defined(LUA_COMPAT_LT_LE)
757 if (ci->callstatus & CIST_LEQ) { /* "<=" using "<" instead? */ 758 if (ci->callstatus & CIST_LEQ) { /* "<=" using "<" instead? */
758 ci->callstatus ^= CIST_LEQ; /* clear mark */ 759 ci->callstatus ^= CIST_LEQ; /* clear mark */
759 res = !res; /* negate result */ 760 res = !res; /* negate result */
760 } 761 }
762#endif
761 lua_assert(GET_OPCODE(*ci->u.l.savedpc) == OP_JMP); 763 lua_assert(GET_OPCODE(*ci->u.l.savedpc) == OP_JMP);
762 if (res != GETARG_k(inst)) /* condition failed? */ 764 if (res != GETARG_k(inst)) /* condition failed? */
763 ci->u.l.savedpc++; /* skip jump instruction */ 765 ci->u.l.savedpc++; /* skip jump instruction */