aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 16b58cf5..4b4fe6c5 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.225 2009/11/19 16:26:29 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.226 2009/11/24 12:05:44 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -119,8 +119,6 @@ static void getfunc (lua_State *L, int opt) {
119 if (lua_getstack(L, level, &ar) == 0) 119 if (lua_getstack(L, level, &ar) == 0)
120 luaL_argerror(L, 1, "invalid level"); 120 luaL_argerror(L, 1, "invalid level");
121 lua_getinfo(L, "f", &ar); 121 lua_getinfo(L, "f", &ar);
122 if (lua_isnil(L, -1))
123 luaL_error(L, "no function environment for tail call at level %d", level);
124 } 122 }
125} 123}
126 124