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-8bcf6228765e56be19feb90c8805cc2fb2223188.tar.gz lua-8bcf6228765e56be19feb90c8805cc2fb2223188.tar.bz2 lua-8bcf6228765e56be19feb90c8805cc2fb2223188.zip |
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 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.81 2000/05/24 13:54:49 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.82 2000/05/26 19:17:57 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 | */ |
@@ -144,7 +144,7 @@ void lua_rawset (lua_State *L) { | |||
144 | luaA_checkCargs(L, 3); | 144 | luaA_checkCargs(L, 3); |
145 | if (ttype(L->top-3) != TAG_TABLE) | 145 | if (ttype(L->top-3) != TAG_TABLE) |
146 | lua_error(L, "indexed expression not a table"); | 146 | lua_error(L, "indexed expression not a table"); |
147 | luaH_set(L, avalue(L->top-3), L->top-2, L->top-1); | 147 | *luaH_set(L, avalue(L->top-3), L->top-2) = *(L->top-1); |
148 | L->top -= 3; | 148 | L->top -= 3; |
149 | } | 149 | } |
150 | 150 | ||