aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
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': {