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 /lundump.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 'lundump.c')
-rw-r--r-- | lundump.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -287,7 +287,7 @@ static void loadFunction (LoadState *S, Proto *f) { | |||
287 | f->linedefined = loadInt(S); | 287 | f->linedefined = loadInt(S); |
288 | f->lastlinedefined = loadInt(S); | 288 | f->lastlinedefined = loadInt(S); |
289 | f->numparams = loadByte(S); | 289 | f->numparams = loadByte(S); |
290 | f->is_vararg = loadByte(S); | 290 | f->flag = loadByte(S) & PF_ISVARARG; /* keep only the meaningful flags */ |
291 | f->maxstacksize = loadByte(S); | 291 | f->maxstacksize = loadByte(S); |
292 | loadCode(S, f); | 292 | loadCode(S, f); |
293 | loadConstants(S, f); | 293 | loadConstants(S, f); |