aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loadlib.c b/loadlib.c
index 49b986de..2ed2c855 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loadlib.c,v 1.109 2012/04/11 16:35:32 roberto Exp roberto $ 2** $Id: loadlib.c,v 1.110 2012/04/26 19:38:52 roberto Exp roberto $
3** Dynamic library loader for Lua 3** Dynamic library loader for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5** 5**
@@ -482,9 +482,9 @@ static void findloader (lua_State *L, const char *name) {
482 lua_getfield(L, lua_upvalueindex(1), "searchers"); /* will be at index 3 */ 482 lua_getfield(L, lua_upvalueindex(1), "searchers"); /* will be at index 3 */
483 if (!lua_istable(L, 3)) 483 if (!lua_istable(L, 3))
484 luaL_error(L, LUA_QL("package.searchers") " must be a table"); 484 luaL_error(L, LUA_QL("package.searchers") " must be a table");
485 /* iterate over available seachers to find a loader */ 485 /* iterate over available searchers to find a loader */
486 for (i = 1; ; i++) { 486 for (i = 1; ; i++) {
487 lua_rawgeti(L, 3, i); /* get a seacher */ 487 lua_rawgeti(L, 3, i); /* get a searcher */
488 if (lua_isnil(L, -1)) { /* no more searchers? */ 488 if (lua_isnil(L, -1)) { /* no more searchers? */
489 lua_pop(L, 1); /* remove nil */ 489 lua_pop(L, 1); /* remove nil */
490 luaL_pushresult(&msg); /* create error message */ 490 luaL_pushresult(&msg); /* create error message */