diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-05-10 01:02:12 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-05-10 01:02:12 +0200 |
commit | 62f2b185868ca2081db05214f41d2f228757e3fd (patch) | |
tree | 37fc36231b413537bb28112a8e83955d18746202 | |
parent | added inital support for Lua 5.2 (diff) |
fixed build for 5.1
-rw-r--r-- | src/l_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/l_util.c b/src/l_util.c index 6f55000..f261178 100644 --- a/src/l_util.c +++ b/src/l_util.c @@ -45,7 +45,7 @@ #include "l_util.h" #if LUA_VERSION_NUM < 502 -#define lua_objlen lua_rawlen +#define lua_rawlen lua_objlen #endif static int get_fd(lua_State *L) @@ -468,6 +468,7 @@ LUALIB_API int luaopen_util(lua_State *L) #else luaL_register(L, LUA_UTILLIBNAME, util_funcs); #endif + lua_newtable(L); lua_setfield(L, -2, LUA_UTILCHLIDRENNAME); return 1; } |