aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-02-21 12:49:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-02-21 12:49:32 -0300
commit212095a601ee68e99065b553f7b6bc216056d82e (patch)
tree3843f9dde40eeb71c56ac8a0be8d77c78272f6ef /ltm.c
parentc67603fafba7f982e92eb870ff4da6c6433c2a85 (diff)
downloadlua-212095a601ee68e99065b553f7b6bc216056d82e.tar.gz
lua-212095a601ee68e99065b553f7b6bc216056d82e.tar.bz2
lua-212095a601ee68e99065b553f7b6bc216056d82e.zip
new opcodes OP_GTI/OP_GEI
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ltm.c b/ltm.c
index e46cc150..3f29c83b 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 2.61 2018/02/15 15:34:29 roberto Exp roberto $ 2** $Id: ltm.c,v 2.62 2018/02/17 19:20:00 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -208,11 +208,10 @@ int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2,
208 setivalue(&aux, v2); 208 setivalue(&aux, v2);
209 if (inv) { /* arguments were exchanged? */ 209 if (inv) { /* arguments were exchanged? */
210 p2 = p1; p1 = &aux; /* correct them */ 210 p2 = p1; p1 = &aux; /* correct them */
211 event = (event == TM_LE) ? TM_LT : TM_LE;
212 } 211 }
213 else 212 else
214 p2 = &aux; 213 p2 = &aux;
215 return (luaT_callorderTM(L, p1, p2, event) != inv); 214 return luaT_callorderTM(L, p1, p2, event);
216} 215}
217 216
218 217