From 96f77142374da8a4a7d4e5e8afd559fbaf0430e8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 30 Aug 2023 10:44:28 -0300 Subject: Field 'Proto.is_vararg' uses only one bit So that the other bits can be used for other purposes. --- lundump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lundump.c') diff --git a/lundump.c b/lundump.c index 674bf21f..07c42e62 100644 --- a/lundump.c +++ b/lundump.c @@ -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); -- cgit v1.2.3-55-g6feb