diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-05 15:03:15 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-05 15:03:15 -0300 |
| commit | e888976bc6ba5592fb8ab8ecc04a8f63e217aa74 (patch) | |
| tree | ae0a03f16d413e6a901c6a5f64058264974672fb /ltm.c | |
| parent | 4d46289331395a845c5de1f6c0e0fe873c50db4f (diff) | |
| download | lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.tar.gz lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.tar.bz2 lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.zip | |
Details (typos in comments)
Diffstat (limited to 'ltm.c')
| -rw-r--r-- | ltm.c | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -168,8 +168,8 @@ void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, | |||
| 168 | 168 | ||
| 169 | 169 | ||
| 170 | void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2, | 170 | void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2, |
| 171 | StkId res, int inv, TMS event) { | 171 | StkId res, int flip, TMS event) { |
| 172 | if (inv) | 172 | if (flip) |
| 173 | luaT_trybinTM(L, p2, p1, res, event); | 173 | luaT_trybinTM(L, p2, p1, res, event); |
| 174 | else | 174 | else |
| 175 | luaT_trybinTM(L, p1, p2, res, event); | 175 | luaT_trybinTM(L, p1, p2, res, event); |
| @@ -177,10 +177,10 @@ void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2, | |||
| 177 | 177 | ||
| 178 | 178 | ||
| 179 | void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, | 179 | void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, |
| 180 | int inv, StkId res, TMS event) { | 180 | int flip, StkId res, TMS event) { |
| 181 | TValue aux; | 181 | TValue aux; |
| 182 | setivalue(&aux, i2); | 182 | setivalue(&aux, i2); |
| 183 | luaT_trybinassocTM(L, p1, &aux, res, inv, event); | 183 | luaT_trybinassocTM(L, p1, &aux, res, flip, event); |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | 186 | ||
| @@ -205,14 +205,14 @@ int luaT_callorderTM (lua_State *L, const TValue *p1, const TValue *p2, | |||
| 205 | 205 | ||
| 206 | 206 | ||
| 207 | int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2, | 207 | int luaT_callorderiTM (lua_State *L, const TValue *p1, int v2, |
| 208 | int inv, int isfloat, TMS event) { | 208 | int flip, int isfloat, TMS event) { |
| 209 | TValue aux; const TValue *p2; | 209 | TValue aux; const TValue *p2; |
| 210 | if (isfloat) { | 210 | if (isfloat) { |
| 211 | setfltvalue(&aux, cast_num(v2)); | 211 | setfltvalue(&aux, cast_num(v2)); |
| 212 | } | 212 | } |
| 213 | else | 213 | else |
| 214 | setivalue(&aux, v2); | 214 | setivalue(&aux, v2); |
| 215 | if (inv) { /* arguments were exchanged? */ | 215 | if (flip) { /* arguments were exchanged? */ |
| 216 | p2 = p1; p1 = &aux; /* correct them */ | 216 | p2 = p1; p1 = &aux; /* correct them */ |
| 217 | } | 217 | } |
| 218 | else | 218 | else |
