From 7e41612eb28ff0fba282bd419781fcbc9bd94776 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 10 May 2004 14:50:51 -0300 Subject: code parameterized by LUA_FIRSTINDEX (first index of an array) --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index b69d55ee..1d5cfa6b 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.4 2004/03/23 17:07:53 roberto Exp roberto $ +** $Id: ltests.c,v 2.5 2004/04/30 20:13:38 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -418,7 +418,7 @@ static int listk (lua_State *L) { lua_createtable(L, p->sizek, 0); for (i=0; isizek; i++) { luaA_pushobject(L, p->k+i); - lua_rawseti(L, -2, i+1); + lua_rawseti(L, -2, i+LUA_FIRSTINDEX); } return 1; } -- cgit v1.2.3-55-g6feb