From 63a822c8e199918c54e325cbc8696ed04071aba8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 29 Jan 2001 17:34:02 -0200 Subject: all boxed types start with their tags --- ltable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ltable.c') diff --git a/ltable.c b/ltable.c index b8bc24c5..77dae4e9 100644 --- a/ltable.c +++ b/ltable.c @@ -1,5 +1,5 @@ /* -** $Id: ltable.c,v 1.71 2001/01/29 13:02:20 roberto Exp roberto $ +** $Id: ltable.c,v 1.72 2001/01/29 17:16:58 roberto Exp roberto $ ** Lua tables (hash) ** See Copyright Notice in lua.h */ @@ -98,6 +98,7 @@ static void setnodevector (lua_State *L, Hash *t, luint32 size) { Hash *luaH_new (lua_State *L, int size) { Hash *t = luaM_new(L, Hash); + t->v.ttype = LUA_TTABLE; t->htag = TagDefault; t->next = G(L)->roottable; G(L)->roottable = t; -- cgit v1.2.3-55-g6feb