aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index e796fac3..6dba514a 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.209 2015/10/12 16:38:19 roberto Exp roberto $ 2** $Id: ltests.c,v 2.210 2016/11/07 12:38:35 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -869,7 +869,7 @@ static int loadlib (lua_State *L) {
869 luaL_requiref(L1, "package", NULL, 1); /* seg. fault if it reloads */ 869 luaL_requiref(L1, "package", NULL, 1); /* seg. fault if it reloads */
870 /* ...but should return the same module */ 870 /* ...but should return the same module */
871 lua_assert(lua_compare(L1, -1, -2, LUA_OPEQ)); 871 lua_assert(lua_compare(L1, -1, -2, LUA_OPEQ));
872 luaL_getsubtable(L1, LUA_REGISTRYINDEX, "_PRELOAD"); 872 luaL_getsubtable(L1, LUA_REGISTRYINDEX, LUA_PRELOAD_TABLE);
873 for (i = 0; libs[i].name; i++) { 873 for (i = 0; libs[i].name; i++) {
874 lua_pushcfunction(L1, libs[i].func); 874 lua_pushcfunction(L1, libs[i].func);
875 lua_setfield(L1, -2, libs[i].name); 875 lua_setfield(L1, -2, libs[i].name);