all boxed types start with their tags

This commit is contained in:
Roberto Ierusalimschy
2001-01-29 17:34:02 -02:00
parent 09def5da44
commit 63a822c8e1
7 changed files with 36 additions and 13 deletions

3
ldo.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: ldo.c,v 1.117 2001/01/26 11:45:51 roberto Exp roberto $
** $Id: ldo.c,v 1.118 2001/01/29 15:35:17 roberto Exp roberto $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
@@ -172,6 +172,7 @@ void luaD_call (lua_State *L, StkId func, int nResults) {
setclvalue(func, tm); /* tag method is the new function to be called */
}
cl = clvalue(func);
ci.v.ttype = LUA_TMARK;
ci.func = cl;
setivalue(func, &ci);
callhook = L->callhook;