aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-08 15:07:59 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-08 15:07:59 -0200
commitfb1cf6ab2d12bd61e3d429830ab20d4ff3c39fd9 (patch)
tree20aa6d78060600e477164e8d032fd8c33aa7c6d4 /lapi.c
parent19ca2087de4002600b891cf78b3c9b1d939ba2ca (diff)
downloadlua-fb1cf6ab2d12bd61e3d429830ab20d4ff3c39fd9.tar.gz
lua-fb1cf6ab2d12bd61e3d429830ab20d4ff3c39fd9.tar.bz2
lua-fb1cf6ab2d12bd61e3d429830ab20d4ff3c39fd9.zip
clearer way to set tables.
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 60eefc80..d75a824d 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.33 1999/02/03 16:42:42 roberto Exp roberto $ 2** $Id: lapi.c,v 1.34 1999/02/04 17:47:59 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -181,7 +181,8 @@ lua_Object lua_rawgettable (void)
181 181
182void lua_settable (void) { 182void lua_settable (void) {
183 checkCparams(3); 183 checkCparams(3);
184 luaV_settable(L->stack.top-3, 0); 184 luaV_settable(L->stack.top-3);
185 L->stack.top -= 2; /* pop table and index */
185} 186}
186 187
187 188