summaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-08-21 17:07:56 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-08-21 17:07:56 -0300
commit7f1a2ad69976cc6891c104d2b669771820b8959a (patch)
treee9c21db809a04e80a8db95eea379981f32d74131 /lbaselib.c
parenta1ab5ab396df521eff70f304e571c16b809037d1 (diff)
downloadlua-7f1a2ad69976cc6891c104d2b669771820b8959a.tar.gz
lua-7f1a2ad69976cc6891c104d2b669771820b8959a.tar.bz2
lua-7f1a2ad69976cc6891c104d2b669771820b8959a.zip
new functions 'lua_geti/lua_seti' (non raw)
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 595f240f..ba92fc90 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.294 2014/08/01 17:22:57 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.295 2014/08/01 17:33:08 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -266,8 +266,7 @@ static int ipairsaux (lua_State *L) {
266 } 266 }
267 else { 267 else {
268 lua_pushinteger(L, i); 268 lua_pushinteger(L, i);
269 lua_pushinteger(L, i); /* key for indexing table */ 269 lua_geti(L, 1, i);
270 lua_gettable(L, 1);
271 return 2; 270 return 2;
272 } 271 }
273} 272}