diff options
Diffstat (limited to 'lbitlib.c')
-rw-r--r-- | lbitlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbitlib.c,v 1.3 2010/01/12 19:40:02 roberto Exp roberto $ | 2 | ** $Id: lbitlib.c,v 1.4 2010/02/11 15:55:29 roberto Exp roberto $ |
3 | ** Standard library for bitwise operations | 3 | ** Standard library for bitwise operations |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -141,6 +141,6 @@ static const luaL_Reg bitlib[] = { | |||
141 | 141 | ||
142 | 142 | ||
143 | LUAMOD_API int luaopen_bit (lua_State *L) { | 143 | LUAMOD_API int luaopen_bit (lua_State *L) { |
144 | luaL_register(L, LUA_BITLIBNAME, bitlib); | 144 | luaL_newlib(L, bitlib); |
145 | return 1; | 145 | return 1; |
146 | } | 146 | } |