aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ldebug.c b/ldebug.c
index d1b47c56..ee3ac17f 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -352,7 +352,15 @@ static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar,
352 break; 352 break;
353 } 353 }
354 case 't': { 354 case 't': {
355 ar->istailcall = (ci != NULL && (ci->callstatus & CIST_TAIL)); 355 if (ci != NULL) {
356 ar->istailcall = !!(ci->callstatus & CIST_TAIL);
357 ar->extraargs =
358 cast_uchar((ci->callstatus & MAX_CCMT) >> CIST_CCMT);
359 }
360 else {
361 ar->istailcall = 0;
362 ar->extraargs = 0;
363 }
356 break; 364 break;
357 } 365 }
358 case 'n': { 366 case 'n': {