aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index fcc0ba51..a660aae2 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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