diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.22 2004/12/06 17:53:42 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.23 2004/12/13 12:15:11 roberto Exp $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -542,7 +542,7 @@ LUA_API void lua_rawgeti (lua_State *L, int idx, int n) { | |||
542 | LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { | 542 | LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { |
543 | lua_lock(L); | 543 | lua_lock(L); |
544 | luaC_checkGC(L); | 544 | luaC_checkGC(L); |
545 | sethvalue(L, L->top, luaH_new(L, narray, luaO_log2(nrec) + 1)); | 545 | sethvalue(L, L->top, luaH_new(L, narray, nrec)); |
546 | api_incr_top(L); | 546 | api_incr_top(L); |
547 | lua_unlock(L); | 547 | lua_unlock(L); |
548 | } | 548 | } |