Field 'Proto.is_vararg' uses only one bit

So that the other bits can be used for other purposes.
This commit is contained in:
Roberto Ierusalimschy
2023-08-30 10:44:28 -03:00
parent 0554581605
commit 96f7714237
8 changed files with 20 additions and 13 deletions

View File

@@ -287,7 +287,7 @@ static void loadFunction (LoadState *S, Proto *f) {
f->linedefined = loadInt(S);
f->lastlinedefined = loadInt(S);
f->numparams = loadByte(S);
f->is_vararg = loadByte(S);
f->flag = loadByte(S) & PF_ISVARARG; /* keep only the meaningful flags */
f->maxstacksize = loadByte(S);
loadCode(S, f);
loadConstants(S, f);