diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-14 14:15:53 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-14 14:15:53 -0200 |
commit | 41fd639cab8e2835ad2860442c19eb78fbc777be (patch) | |
tree | 4ae644a4612561537169d070a90fdfd826024b26 /ldo.c | |
parent | a845a46cc883a76cb5175c0755805ba44a37d909 (diff) | |
download | lua-41fd639cab8e2835ad2860442c19eb78fbc777be.tar.gz lua-41fd639cab8e2835ad2860442c19eb78fbc777be.tar.bz2 lua-41fd639cab8e2835ad2860442c19eb78fbc777be.zip |
documentation for write barriers
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.199 2002/11/07 15:37:10 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.200 2002/11/13 11:31:39 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -188,7 +188,7 @@ static void adjust_varargs (lua_State *L, int nfixargs, StkId base) { | |||
188 | actual -= nfixargs; /* number of extra arguments */ | 188 | actual -= nfixargs; /* number of extra arguments */ |
189 | htab = luaH_new(L, 0, 0); /* create `arg' table */ | 189 | htab = luaH_new(L, 0, 0); /* create `arg' table */ |
190 | for (i=0; i<actual; i++) /* put extra arguments into `arg' table */ | 190 | for (i=0; i<actual; i++) /* put extra arguments into `arg' table */ |
191 | setobj2t(luaH_setnum(L, htab, i+1), L->top - actual + i); | 191 | setobj2n(luaH_setnum(L, htab, i+1), L->top - actual + i); |
192 | /* store counter in field `n' */ | 192 | /* store counter in field `n' */ |
193 | setsvalue(&nname, luaS_newliteral(L, "n")); | 193 | setsvalue(&nname, luaS_newliteral(L, "n")); |
194 | setnvalue(luaH_set(L, htab, &nname), actual); | 194 | setnvalue(luaH_set(L, htab, &nname), actual); |