diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-08-21 17:07:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-08-21 17:07:56 -0300 |
commit | 7f1a2ad69976cc6891c104d2b669771820b8959a (patch) | |
tree | e9c21db809a04e80a8db95eea379981f32d74131 /lbaselib.c | |
parent | a1ab5ab396df521eff70f304e571c16b809037d1 (diff) | |
download | lua-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 | } |