summaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-01-29 17:34:02 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-01-29 17:34:02 -0200
commit63a822c8e199918c54e325cbc8696ed04071aba8 (patch)
tree430e1b2fe1ffafb712bd712b5b625a18afaa953d /lfunc.c
parent09def5da4440a5a91c2721f495bd9c3df1081874 (diff)
downloadlua-github-63a822c8e199918c54e325cbc8696ed04071aba8.tar.gz
all boxed types start with their tags
Diffstat (limited to 'lfunc.c')
-rw-r--r--lfunc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lfunc.c b/lfunc.c
index ef9d3c3b..4e7facb0 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -1,5 +1,5 @@
/*
-** $Id: lfunc.c,v 1.36 2000/12/28 12:55:41 roberto Exp roberto $
+** $Id: lfunc.c,v 1.37 2001/01/19 13:20:30 roberto Exp roberto $
** Auxiliary functions to manipulate prototypes and closures
** See Copyright Notice in lua.h
*/
@@ -19,6 +19,7 @@
Closure *luaF_newclosure (lua_State *L, int nelems) {
Closure *c = (Closure *)luaM_malloc(L, sizeclosure(nelems));
+ c->v.ttype = LUA_TFUNCTION;
c->next = G(L)->rootcl;
G(L)->rootcl = c;
c->mark = c;