diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-06 13:31:41 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-06 13:31:41 -0300 |
| commit | 8bcf6228765e56be19feb90c8805cc2fb2223188 (patch) | |
| tree | ce13072efce7a8aadcdde8de747073f3d7bf0859 /lapi.c | |
| parent | dbbf6c073b4203169a0221a082f6d00ccb27754c (diff) | |
| download | lua-github-8bcf6228765e56be19feb90c8805cc2fb2223188.tar.gz | |
new signature for `luaH_set'
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |
