diff options
Diffstat (limited to 'lvm.c')
| -rw-r--r-- | lvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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 */ |
