aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-05 16:10:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-05 16:10:42 -0200
commit5e76a4fd313a8690d300085c4e8fcb9dca50c01a (patch)
tree3f4c0be6c09659d01eb14aadec1652d6428e29fa /ltm.c
parente8c779736f3029df353038352c14c8ab63728811 (diff)
downloadlua-5e76a4fd313a8690d300085c4e8fcb9dca50c01a.tar.gz
lua-5e76a4fd313a8690d300085c4e8fcb9dca50c01a.tar.bz2
lua-5e76a4fd313a8690d300085c4e8fcb9dca50c01a.zip
New macros for arithmetic/bitwise operations in 'luaV_execute'
The repetitive code of the arithmetic and bitwise operators in the main iterpreter loop was moved to appropriate macros. (As a detail, the function 'luaV_div' was renamed 'luaV_idiv', as it does an "integer division" (floor division).
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltm.c b/ltm.c
index 53e15c7f..23a97a62 100644
--- a/ltm.c
+++ b/ltm.c
@@ -176,7 +176,7 @@ void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2,
176} 176}
177 177
178 178
179void luaT_trybiniTM (lua_State *L, const TValue *p1, int i2, 179void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2,
180 int inv, StkId res, TMS event) { 180 int inv, StkId res, TMS event) {
181 TValue aux; 181 TValue aux;
182 setivalue(&aux, i2); 182 setivalue(&aux, i2);