aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lj_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_debug.c b/src/lj_debug.c
index 959dc289..8fe11b98 100644
--- a/src/lj_debug.c
+++ b/src/lj_debug.c
@@ -429,7 +429,7 @@ int lj_debug_getinfo(lua_State *L, const char *what, lj_Debug *ar, int ext)
429 GCfunc *fn; 429 GCfunc *fn;
430 if (*what == '>') { 430 if (*what == '>') {
431 TValue *func = L->top - 1; 431 TValue *func = L->top - 1;
432 api_check(L, tvisfunc(func)); 432 if (!tvisfunc(func)) return 0;
433 fn = funcV(func); 433 fn = funcV(func);
434 L->top--; 434 L->top--;
435 what++; 435 what++;