aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-13 09:32:26 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-13 09:32:26 -0200
commit2f91f95d94d3a27fee6b45c31ea9ab631924a8bf (patch)
treebbc605f6643b4958f45536dc5f5f84297eda70c2 /ltable.c
parent42dd080a2e3e8fb6887ca1e066f53bb8fd23c9e7 (diff)
downloadlua-2f91f95d94d3a27fee6b45c31ea9ab631924a8bf.tar.gz
lua-2f91f95d94d3a27fee6b45c31ea9ab631924a8bf.tar.bz2
lua-2f91f95d94d3a27fee6b45c31ea9ab631924a8bf.zip
better control over GCObjects
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index 2866ed25..f58d6dfb 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 1.119 2002/09/02 19:54:49 roberto Exp roberto $ 2** $Id: ltable.c,v 1.120 2002/11/07 15:37:10 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -301,7 +301,7 @@ static void rehash (lua_State *L, Table *t) {
301 301
302Table *luaH_new (lua_State *L, int narray, int lnhash) { 302Table *luaH_new (lua_State *L, int narray, int lnhash) {
303 Table *t = luaM_new(L, Table); 303 Table *t = luaM_new(L, Table);
304 luaC_link(L, cast(GCObject *, t), LUA_TTABLE); 304 luaC_link(L, valtogco(t), LUA_TTABLE);
305 t->metatable = hvalue(defaultmeta(L)); 305 t->metatable = hvalue(defaultmeta(L));
306 t->flags = cast(lu_byte, ~0); 306 t->flags = cast(lu_byte, ~0);
307 t->mode = 0; 307 t->mode = 0;