diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-08-30 10:44:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-08-30 10:44:28 -0300 |
commit | 96f77142374da8a4a7d4e5e8afd559fbaf0430e8 (patch) | |
tree | 5514ffbf943c95bd5eed14b096a370fefe6586e6 /ldo.c | |
parent | 05545816057cfdc54bb58199388a2d8878ae5542 (diff) | |
download | lua-96f77142374da8a4a7d4e5e8afd559fbaf0430e8.tar.gz lua-96f77142374da8a4a7d4e5e8afd559fbaf0430e8.tar.bz2 lua-96f77142374da8a4a7d4e5e8afd559fbaf0430e8.zip |
Field 'Proto.is_vararg' uses only one bit
So that the other bits can be used for other purposes.
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -391,7 +391,7 @@ static void rethook (lua_State *L, CallInfo *ci, int nres) { | |||
391 | int ftransfer; | 391 | int ftransfer; |
392 | if (isLua(ci)) { | 392 | if (isLua(ci)) { |
393 | Proto *p = ci_func(ci)->p; | 393 | Proto *p = ci_func(ci)->p; |
394 | if (p->is_vararg) | 394 | if (p->flag & PF_ISVARARG) |
395 | delta = ci->u.l.nextraargs + p->numparams + 1; | 395 | delta = ci->u.l.nextraargs + p->numparams + 1; |
396 | } | 396 | } |
397 | ci->func.p += delta; /* if vararg, back to virtual 'func' */ | 397 | ci->func.p += delta; /* if vararg, back to virtual 'func' */ |