diff options
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.166 2005/02/14 13:19:44 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.167 2005/02/18 12:40:02 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 | */ |
@@ -283,6 +283,7 @@ static int luaB_loadfile (lua_State *L) { | |||
283 | ** reserved slot inside the stack. | 283 | ** reserved slot inside the stack. |
284 | */ | 284 | */ |
285 | static const char *generic_reader (lua_State *L, void *ud, size_t *size) { | 285 | static const char *generic_reader (lua_State *L, void *ud, size_t *size) { |
286 | (void)ud; /* to avoid warnings */ | ||
286 | luaL_checkstack(L, 2, "too many nested functions"); | 287 | luaL_checkstack(L, 2, "too many nested functions"); |
287 | lua_pushvalue(L, 1); /* get function */ | 288 | lua_pushvalue(L, 1); /* get function */ |
288 | lua_call(L, 0, 1); /* call it */ | 289 | lua_call(L, 0, 1); /* call it */ |