diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-29 17:34:02 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-29 17:34:02 -0200 |
commit | 63a822c8e199918c54e325cbc8696ed04071aba8 (patch) | |
tree | 430e1b2fe1ffafb712bd712b5b625a18afaa953d /ltable.c | |
parent | 09def5da4440a5a91c2721f495bd9c3df1081874 (diff) | |
download | lua-63a822c8e199918c54e325cbc8696ed04071aba8.tar.gz lua-63a822c8e199918c54e325cbc8696ed04071aba8.tar.bz2 lua-63a822c8e199918c54e325cbc8696ed04071aba8.zip |
all boxed types start with their tags
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 1.71 2001/01/29 13:02:20 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 1.72 2001/01/29 17:16:58 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 | */ |
@@ -98,6 +98,7 @@ static void setnodevector (lua_State *L, Hash *t, luint32 size) { | |||
98 | 98 | ||
99 | Hash *luaH_new (lua_State *L, int size) { | 99 | Hash *luaH_new (lua_State *L, int size) { |
100 | Hash *t = luaM_new(L, Hash); | 100 | Hash *t = luaM_new(L, Hash); |
101 | t->v.ttype = LUA_TTABLE; | ||
101 | t->htag = TagDefault; | 102 | t->htag = TagDefault; |
102 | t->next = G(L)->roottable; | 103 | t->next = G(L)->roottable; |
103 | G(L)->roottable = t; | 104 | G(L)->roottable = t; |