diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-08 15:07:59 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-08 15:07:59 -0200 |
commit | fb1cf6ab2d12bd61e3d429830ab20d4ff3c39fd9 (patch) | |
tree | 20aa6d78060600e477164e8d032fd8c33aa7c6d4 /lapi.c | |
parent | 19ca2087de4002600b891cf78b3c9b1d939ba2ca (diff) | |
download | lua-fb1cf6ab2d12bd61e3d429830ab20d4ff3c39fd9.tar.gz lua-fb1cf6ab2d12bd61e3d429830ab20d4ff3c39fd9.tar.bz2 lua-fb1cf6ab2d12bd61e3d429830ab20d4ff3c39fd9.zip |
clearer way to set tables.
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 | ||
182 | void lua_settable (void) { | 182 | void 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 | ||