summaryrefslogtreecommitdiff
path: root/src/loadlib_rel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/loadlib_rel.c')
-rw-r--r--src/loadlib_rel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loadlib_rel.c b/src/loadlib_rel.c
index 5d266f2..8f5820b 100644
--- a/src/loadlib_rel.c
+++ b/src/loadlib_rel.c
@@ -679,7 +679,7 @@ LUALIB_API int luaopen_package (lua_State *L) {
lua_pushvalue(L, -1);
lua_replace(L, LUA_ENVIRONINDEX);
/* create `loaders' table */
- lua_createtable(L, 0, sizeof(loaders)/sizeof(loaders[0]) - 1);
+ lua_createtable(L, sizeof(loaders)/sizeof(loaders[0]) - 1, 0);
/* fill it with pre-defined loaders */
for (i=0; loaders[i] != NULL; i++) {
lua_pushcfunction(L, loaders[i]);