new signature for `luaH_set'

This commit is contained in:
Roberto Ierusalimschy
2000-06-06 13:31:41 -03:00
parent dbbf6c073b
commit 8bcf622876
6 changed files with 55 additions and 61 deletions

4
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 1.81 2000/05/24 13:54:49 roberto Exp roberto $
** $Id: lapi.c,v 1.82 2000/05/26 19:17:57 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -144,7 +144,7 @@ void lua_rawset (lua_State *L) {
luaA_checkCargs(L, 3);
if (ttype(L->top-3) != TAG_TABLE)
lua_error(L, "indexed expression not a table");
luaH_set(L, avalue(L->top-3), L->top-2, L->top-1);
*luaH_set(L, avalue(L->top-3), L->top-2) = *(L->top-1);
L->top -= 3;
}