summaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-05 15:03:15 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-05 15:03:15 -0300
commite888976bc6ba5592fb8ab8ecc04a8f63e217aa74 (patch)
treeae0a03f16d413e6a901c6a5f64058264974672fb /ltm.c
parent4d46289331395a845c5de1f6c0e0fe873c50db4f (diff)
downloadlua-github-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.tar.gz
Details (typos in comments)
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ltm.c b/ltm.c
index c4fd762b..24739444 100644
--- a/ltm.c
+++ b/ltm.c
@@ -168,8 +168,8 @@ void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2,
- StkId res, int inv, TMS event) {
- if (inv)
+ StkId res, int flip, TMS event) {
+ if (flip)
luaT_trybinTM(L, p2, p1, res, event);
else
luaT_trybinTM(L, p1, p2, res, event);
@@ -177,10 +177,10 @@ void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2,
void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2,
- int inv, StkId res, TMS event) {
+ int flip, StkId res, TMS event) {
TValue aux;
setivalue(&aux, i2);
- luaT_trybinassocTM(L, p1, &aux, res, inv, event);
+ luaT_trybinassocTM(L, p1, &aux, res, flip, event);
}
@@ -205,14 +205,14 @@ int luaT_callorderTM (lua_State *L, const TValue *p1, const TValue *p2,
int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2,
- int inv, int isfloat, TMS event) {
+ int flip, int isfloat, TMS event) {
TValue aux; const TValue *p2;
if (isfloat) {
setfltvalue(&aux, cast_num(v2));
}
else
setivalue(&aux, v2);
- if (inv) { /* arguments were exchanged? */
+ if (flip) { /* arguments were exchanged? */
p2 = p1; p1 = &aux; /* correct them */
}
else