summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lua/limglib.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua/limglib.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/limglib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/limglib.c b/Build/source/texk/web2c/luatexdir/lua/limglib.c
index 6010bfd8500..f9d863eef13 100644
--- a/Build/source/texk/web2c/luatexdir/lua/limglib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/limglib.c
@@ -758,14 +758,14 @@ int luaopen_img(lua_State * L)
{
luaL_newmetatable(L, TYPE_IMG);
#ifdef LuajitTeX
- luaL_register(L, NULL, img_m);
+ luaL_openlib(L, NULL, img_m, 0);
luaL_newmetatable(L, TYPE_IMG_DICT);
- luaL_register(L, NULL, img_dict_m);
+ luaL_openlib(L, NULL, img_dict_m, 0);
#else
luaL_setfuncs(L, img_m, 0);
luaL_newmetatable(L, TYPE_IMG_DICT);
luaL_setfuncs(L, img_dict_m, 0);
#endif
- luaL_register(L, "img", imglib_f);
+ luaL_openlib(L, "img", imglib_f, 0);
return 1;
}