From 11d2f1c6f0f04cbe447d5a58f68c54febbc67274 Mon Sep 17 00:00:00 2001 From: sven Date: Tue, 9 Sep 2008 13:23:14 +0000 Subject: [PATCH] replace deprecated use of luaL_openlib with luaL_register This fixes a build problem when LUA_COMPAT_OPENLIB is not defined --- nse_bit.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nse_bit.cc b/nse_bit.cc index 42331c2a4..b143016a9 100644 --- a/nse_bit.cc +++ b/nse_bit.cc @@ -64,7 +64,7 @@ static const struct luaL_reg bitlib[] = { }; LUALIB_API int luaopen_bit(lua_State *L) { - luaL_openlib(L, BITLIBNAME, bitlib, 0); + luaL_register(L, BITLIBNAME, bitlib); return 1; }