aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-21 14:56:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-21 14:56:59 -0300
commit15231d4fb2f6984b25e0353ff46eda1a180b686d (patch)
treefea343d493f04539a2a9ebe46c838cc5b8a01cd5 /ldebug.c
parentf407b3c4a1bc9667867ec51e835c20d97aab55a2 (diff)
downloadlua-15231d4fb2f6984b25e0353ff46eda1a180b686d.tar.gz
lua-15231d4fb2f6984b25e0353ff46eda1a180b686d.tar.bz2
lua-15231d4fb2f6984b25e0353ff46eda1a180b686d.zip
'nresults' moved into 'callstatus'
That gives us more free bits in 'callstatus', for future use.
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 202d6417..1c8b57c8 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -346,13 +346,13 @@ static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar,
346 ar->nparams = 0; 346 ar->nparams = 0;
347 } 347 }
348 else { 348 else {
349 ar->isvararg = f->l.p->flag & PF_ISVARARG; 349 ar->isvararg = (f->l.p->flag & PF_ISVARARG) ? 1 : 0;
350 ar->nparams = f->l.p->numparams; 350 ar->nparams = f->l.p->numparams;
351 } 351 }
352 break; 352 break;
353 } 353 }
354 case 't': { 354 case 't': {
355 ar->istailcall = (ci) ? ci->callstatus & CIST_TAIL : 0; 355 ar->istailcall = (ci != NULL && (ci->callstatus & CIST_TAIL));
356 break; 356 break;
357 } 357 }
358 case 'n': { 358 case 'n': {