diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-08-09 17:58:29 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-08-09 17:58:29 -0300 |
| commit | 92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8 (patch) | |
| tree | 8e360f9491a5d547a8be1aaddce780adb9fcea6b /lapi.c | |
| parent | b5bf7d9ef414ce05da8523b966d94252c32a4010 (diff) | |
| download | lua-92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8.tar.gz lua-92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8.tar.bz2 lua-92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8.zip | |
no more 'luaH_setstr (used only once) + 'luaH_setint' receives value
to be 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 2.148 2011/06/02 19:31:40 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.149 2011/06/13 14:13:06 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 | */ |
| @@ -744,7 +744,7 @@ LUA_API void lua_rawseti (lua_State *L, int idx, int n) { | |||
| 744 | api_checknelems(L, 1); | 744 | api_checknelems(L, 1); |
| 745 | o = index2addr(L, idx); | 745 | o = index2addr(L, idx); |
| 746 | api_check(L, ttistable(o), "table expected"); | 746 | api_check(L, ttistable(o), "table expected"); |
| 747 | setobj2t(L, luaH_setint(L, hvalue(o), n), L->top-1); | 747 | luaH_setint(L, hvalue(o), n, L->top - 1); |
| 748 | luaC_barrierback(L, gcvalue(o), L->top-1); | 748 | luaC_barrierback(L, gcvalue(o), L->top-1); |
| 749 | L->top--; | 749 | L->top--; |
| 750 | lua_unlock(L); | 750 | lua_unlock(L); |
