clearer way to set tables.

This commit is contained in:
Roberto Ierusalimschy
1999-02-08 15:07:59 -02:00
parent 19ca2087de
commit fb1cf6ab2d
5 changed files with 46 additions and 45 deletions

5
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 1.33 1999/02/03 16:42:42 roberto Exp roberto $
** $Id: lapi.c,v 1.34 1999/02/04 17:47:59 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -181,7 +181,8 @@ lua_Object lua_rawgettable (void)
void lua_settable (void) {
checkCparams(3);
luaV_settable(L->stack.top-3, 0);
luaV_settable(L->stack.top-3);
L->stack.top -= 2; /* pop table and index */
}