aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-01-04 13:55:12 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-01-04 13:55:12 -0200
commit65726f3e2e226f6a350a5dba643c13c8edd34965 (patch)
treea65e8ac39cb13cbafdfc6870ffaea248e96b25ba /lapi.c
parent9fe2d0266ac3ba30d432ca8edf6116beb94fe2af (diff)
downloadlua-65726f3e2e226f6a350a5dba643c13c8edd34965.tar.gz
lua-65726f3e2e226f6a350a5dba643c13c8edd34965.tar.bz2
lua-65726f3e2e226f6a350a5dba643c13c8edd34965.zip
cleaner interface to `ltable'
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 15133a8a..08c15390 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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) {
542LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { 542LUA_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}