diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.148 2001/07/12 18:11:58 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.149 2001/07/22 00:59:36 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 | */ |
@@ -443,7 +443,7 @@ LUA_API void lua_rawset (lua_State *L, int index) { | |||
443 | api_checknelems(L, 2); | 443 | api_checknelems(L, 2); |
444 | t = luaA_index(L, index); | 444 | t = luaA_index(L, index); |
445 | api_check(L, ttype(t) == LUA_TTABLE); | 445 | api_check(L, ttype(t) == LUA_TTABLE); |
446 | setobj(luaH_set(L, hvalue(t), L->top-2), (L->top-1)); | 446 | luaH_set(L, hvalue(t), L->top-2, L->top-1); |
447 | L->top -= 2; | 447 | L->top -= 2; |
448 | lua_unlock(L); | 448 | lua_unlock(L); |
449 | } | 449 | } |
@@ -455,7 +455,7 @@ LUA_API void lua_rawseti (lua_State *L, int index, int n) { | |||
455 | api_checknelems(L, 1); | 455 | api_checknelems(L, 1); |
456 | o = luaA_index(L, index); | 456 | o = luaA_index(L, index); |
457 | api_check(L, ttype(o) == LUA_TTABLE); | 457 | api_check(L, ttype(o) == LUA_TTABLE); |
458 | setobj(luaH_setnum(L, hvalue(o), n), (L->top-1)); | 458 | luaH_setnum(L, hvalue(o), n, L->top-1); |
459 | L->top--; | 459 | L->top--; |
460 | lua_unlock(L); | 460 | lua_unlock(L); |
461 | } | 461 | } |