aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-14 14:15:53 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-14 14:15:53 -0200
commit41fd639cab8e2835ad2860442c19eb78fbc777be (patch)
tree4ae644a4612561537169d070a90fdfd826024b26 /ldo.c
parenta845a46cc883a76cb5175c0755805ba44a37d909 (diff)
downloadlua-41fd639cab8e2835ad2860442c19eb78fbc777be.tar.gz
lua-41fd639cab8e2835ad2860442c19eb78fbc777be.tar.bz2
lua-41fd639cab8e2835ad2860442c19eb78fbc777be.zip
documentation for write barriers
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldo.c b/ldo.c
index a3e084b0..ae752ece 100644
--- a/ldo.c
+++ b/ldo.c
@@ -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);