diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-28 14:17:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-28 14:17:53 -0300 |
commit | ade585bdf9e286a0ec01796763ded6701c6b1a8f (patch) | |
tree | a578c006fc70e54114e1056bbbf8a014ccc30721 /ltests.c | |
parent | 04c41444e22740119d3c017830276d6590b09747 (diff) | |
download | lua-ade585bdf9e286a0ec01796763ded6701c6b1a8f.tar.gz lua-ade585bdf9e286a0ec01796763ded6701c6b1a8f.tar.bz2 lua-ade585bdf9e286a0ec01796763ded6701c6b1a8f.zip |
no more LUA_FIRSTINDEX
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.21 2005/03/16 16:58:41 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.22 2005/03/23 17:51:11 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -430,7 +430,7 @@ static int listk (lua_State *L) { | |||
430 | lua_createtable(L, p->sizek, 0); | 430 | lua_createtable(L, p->sizek, 0); |
431 | for (i=0; i<p->sizek; i++) { | 431 | for (i=0; i<p->sizek; i++) { |
432 | luaA_pushobject(L, p->k+i); | 432 | luaA_pushobject(L, p->k+i); |
433 | lua_rawseti(L, -2, i+LUA_FIRSTINDEX); | 433 | lua_rawseti(L, -2, i+1); |
434 | } | 434 | } |
435 | return 1; | 435 | return 1; |
436 | } | 436 | } |