summaryrefslogtreecommitdiff
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 93f2d53d..11d2b6a7 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.147 2017/12/07 15:44:10 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.148 2017/12/13 18:32:09 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -328,7 +328,7 @@ static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar,
328 } 328 }
329 else { 329 else {
330 ar->isvararg = f->l.p->is_vararg; 330 ar->isvararg = f->l.p->is_vararg;
331 ar->nparams = f->l.p->numparams; 331 ar->nparams = f->l.p->numparams + f->l.p->is_vararg;
332 } 332 }
333 break; 333 break;
334 } 334 }