diff options
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 | } |