From 0183b8030c80f57b87874ff7867ccdb172d9d3dc Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 28 Dec 2000 10:55:41 -0200 Subject: `free' gets size of the block: complete control over memory use --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index a80a7977..ae0c71fc 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.53 2000/10/30 16:29:59 roberto Exp roberto $ +** $Id: ltests.c,v 1.54 2000/10/31 13:10:24 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -116,7 +116,7 @@ static int liststrings (lua_State *L) { 1, "Lua function expected"); p = clvalue(luaA_index(L, 1))->f.l; lua_newtable(L); - for (i=0; inkstr; i++) { + for (i=0; isizekstr; i++) { lua_pushnumber(L, i+1); lua_pushstring(L, p->kstr[i]->str); lua_settable(L, -3); -- cgit v1.2.3-55-g6feb