From 212095a601ee68e99065b553f7b6bc216056d82e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 21 Feb 2018 12:49:32 -0300 Subject: new opcodes OP_GTI/OP_GEI --- ltm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index e46cc150..3f29c83b 100644 --- a/ltm.c +++ b/ltm.c @@ -1,5 +1,5 @@ /* -** $Id: ltm.c,v 2.61 2018/02/15 15:34:29 roberto Exp roberto $ +** $Id: ltm.c,v 2.62 2018/02/17 19:20:00 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -208,11 +208,10 @@ int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2, setivalue(&aux, v2); if (inv) { /* arguments were exchanged? */ p2 = p1; p1 = &aux; /* correct them */ - event = (event == TM_LE) ? TM_LT : TM_LE; } else p2 = &aux; - return (luaT_callorderTM(L, p1, p2, event) != inv); + return luaT_callorderTM(L, p1, p2, event); } -- cgit v1.2.3-55-g6feb