From 7f1a2ad69976cc6891c104d2b669771820b8959a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 21 Aug 2014 17:07:56 -0300 Subject: new functions 'lua_geti/lua_seti' (non raw) --- lbaselib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index 595f240f..ba92fc90 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.294 2014/08/01 17:22:57 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.295 2014/08/01 17:33:08 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -266,8 +266,7 @@ static int ipairsaux (lua_State *L) { } else { lua_pushinteger(L, i); - lua_pushinteger(L, i); /* key for indexing table */ - lua_gettable(L, 1); + lua_geti(L, 1, i); return 2; } } -- cgit v1.2.3-55-g6feb