diff options
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 | ||