summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-28 14:17:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-03-28 14:17:53 -0300
commitade585bdf9e286a0ec01796763ded6701c6b1a8f (patch)
treea578c006fc70e54114e1056bbbf8a014ccc30721 /ltests.c
parent04c41444e22740119d3c017830276d6590b09747 (diff)
downloadlua-ade585bdf9e286a0ec01796763ded6701c6b1a8f.tar.gz
lua-ade585bdf9e286a0ec01796763ded6701c6b1a8f.tar.bz2
lua-ade585bdf9e286a0ec01796763ded6701c6b1a8f.zip
no more LUA_FIRSTINDEX
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index 4e12a493..6ccc5042 100644
--- a/ltests.c
+++ b/ltests.c
@@ -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}