summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
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 a80a7977..ae0c71fc 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.53 2000/10/30 16:29:59 roberto Exp roberto $ 2** $Id: ltests.c,v 1.54 2000/10/31 13:10:24 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*/
@@ -116,7 +116,7 @@ static int liststrings (lua_State *L) {
116 1, "Lua function expected"); 116 1, "Lua function expected");
117 p = clvalue(luaA_index(L, 1))->f.l; 117 p = clvalue(luaA_index(L, 1))->f.l;
118 lua_newtable(L); 118 lua_newtable(L);
119 for (i=0; i<p->nkstr; i++) { 119 for (i=0; i<p->sizekstr; i++) {
120 lua_pushnumber(L, i+1); 120 lua_pushnumber(L, i+1);
121 lua_pushstring(L, p->kstr[i]->str); 121 lua_pushstring(L, p->kstr[i]->str);
122 lua_settable(L, -3); 122 lua_settable(L, -3);