new functions 'lua_geti/lua_seti' (non raw)

This commit is contained in:
Roberto Ierusalimschy
2014-08-21 17:07:56 -03:00
parent a1ab5ab396
commit 7f1a2ad699
4 changed files with 35 additions and 29 deletions

View File

@@ -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;
}
}