From 92afcf2823e5dfbe9bb10b0ed62306b6015fcfb8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 9 Aug 2011 17:58:29 -0300 Subject: no more 'luaH_setstr (used only once) + 'luaH_setint' receives value to be set. --- lapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index b2035931..29f639a6 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.148 2011/06/02 19:31:40 roberto Exp roberto $ +** $Id: lapi.c,v 2.149 2011/06/13 14:13:06 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -744,7 +744,7 @@ LUA_API void lua_rawseti (lua_State *L, int idx, int n) { api_checknelems(L, 1); o = index2addr(L, idx); api_check(L, ttistable(o), "table expected"); - setobj2t(L, luaH_setint(L, hvalue(o), n), L->top-1); + luaH_setint(L, hvalue(o), n, L->top - 1); luaC_barrierback(L, gcvalue(o), L->top-1); L->top--; lua_unlock(L); -- cgit v1.2.3-55-g6feb