From 15231d4fb2f6984b25e0353ff46eda1a180b686d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sun, 21 Jul 2024 14:56:59 -0300 Subject: 'nresults' moved into 'callstatus' That gives us more free bits in 'callstatus', for future use. --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') 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, ar->nparams = 0; } else { - ar->isvararg = f->l.p->flag & PF_ISVARARG; + ar->isvararg = (f->l.p->flag & PF_ISVARARG) ? 1 : 0; ar->nparams = f->l.p->numparams; } break; } case 't': { - ar->istailcall = (ci) ? ci->callstatus & CIST_TAIL : 0; + ar->istailcall = (ci != NULL && (ci->callstatus & CIST_TAIL)); break; } case 'n': { -- cgit v1.2.3-55-g6feb