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 dd086452..73e34690 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.76 2011/01/26 16:30:02 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.77 2011/04/07 18:14:12 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*/
@@ -256,7 +256,7 @@ LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
256 if (*what == '>') { 256 if (*what == '>') {
257 ci = NULL; 257 ci = NULL;
258 func = L->top - 1; 258 func = L->top - 1;
259 luai_apicheck(L, ttisfunction(func)); 259 api_check(L, ttisfunction(func), "function expected");
260 what++; /* skip the '>' */ 260 what++; /* skip the '>' */
261 L->top--; /* pop function */ 261 L->top--; /* pop function */
262 } 262 }