aboutsummaryrefslogtreecommitdiff
path: root/lundump.c
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-09-16 13:26:24 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-09-16 13:26:24 -0300
commit140b672e2ee2ac842661ece4b48e1a64f0cd11ea (patch)
treeb925cd1e40712ab09a75ef2c0e30095aac0af0aa /lundump.c
parent9ea06e61f20ae34974226074fc6123dbb54a07c2 (diff)
downloadlua-140b672e2ee2ac842661ece4b48e1a64f0cd11ea.tar.gz
lua-140b672e2ee2ac842661ece4b48e1a64f0cd11ea.tar.bz2
lua-140b672e2ee2ac842661ece4b48e1a64f0cd11ea.zip
Vararg table
Not yet optimized nor documented.
Diffstat (limited to 'lundump.c')
-rw-r--r--lundump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lundump.c b/lundump.c
index 76f0ddc1..74839af8 100644
--- a/lundump.c
+++ b/lundump.c
@@ -327,7 +327,8 @@ static void loadFunction (LoadState *S, Proto *f) {
327 f->linedefined = loadInt(S); 327 f->linedefined = loadInt(S);
328 f->lastlinedefined = loadInt(S); 328 f->lastlinedefined = loadInt(S);
329 f->numparams = loadByte(S); 329 f->numparams = loadByte(S);
330 f->flag = loadByte(S) & PF_ISVARARG; /* get only the meaningful flags */ 330 /* get only the meaningful flags */
331 f->flag = cast_byte(loadByte(S) & ~PF_FIXED);
331 if (S->fixed) 332 if (S->fixed)
332 f->flag |= PF_FIXED; /* signal that code is fixed */ 333 f->flag |= PF_FIXED; /* signal that code is fixed */
333 f->maxstacksize = loadByte(S); 334 f->maxstacksize = loadByte(S);