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 2.13 2004/06/30 14:15:23 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.14 2004/07/09 14:20:22 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 | */ |
@@ -613,7 +613,7 @@ LUA_API void lua_rawset (lua_State *L, int idx) { | |||
613 | t = luaA_index(L, idx); | 613 | t = luaA_index(L, idx); |
614 | api_check(L, ttistable(t)); | 614 | api_check(L, ttistable(t)); |
615 | setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1); | 615 | setobj2t(L, luaH_set(L, hvalue(t), L->top-2), L->top-1); |
616 | luaC_barrier(L, hvalue(t), L->top-1); | 616 | luaC_barriert(L, hvalue(t), L->top-1); |
617 | L->top -= 2; | 617 | L->top -= 2; |
618 | lua_unlock(L); | 618 | lua_unlock(L); |
619 | } | 619 | } |
@@ -626,7 +626,7 @@ LUA_API void lua_rawseti (lua_State *L, int idx, int n) { | |||
626 | o = luaA_index(L, idx); | 626 | o = luaA_index(L, idx); |
627 | api_check(L, ttistable(o)); | 627 | api_check(L, ttistable(o)); |
628 | setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1); | 628 | setobj2t(L, luaH_setnum(L, hvalue(o), n), L->top-1); |
629 | luaC_barrier(L, hvalue(o), L->top-1); | 629 | luaC_barriert(L, hvalue(o), L->top-1); |
630 | L->top--; | 630 | L->top--; |
631 | lua_unlock(L); | 631 | lua_unlock(L); |
632 | } | 632 | } |