diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.110 2015/01/02 12:52:22 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.111 2015/02/13 16:01:17 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 | */ |
@@ -295,7 +295,7 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) { | |||
295 | if (*what == '>') { | 295 | if (*what == '>') { |
296 | ci = NULL; | 296 | ci = NULL; |
297 | func = L->top - 1; | 297 | func = L->top - 1; |
298 | api_check(ttisfunction(func), "function expected"); | 298 | api_check(L, ttisfunction(func), "function expected"); |
299 | what++; /* skip the '>' */ | 299 | what++; /* skip the '>' */ |
300 | L->top--; /* pop function */ | 300 | L->top--; /* pop function */ |
301 | } | 301 | } |