From d11e5adf55b11a446671775a6c7803e066fc94e8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 25 Jan 2000 11:57:18 -0200 Subject: `const' array in protos breaked in 3 arrays (for strings, numbers, and prototypes). --- ldebug.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 504dae90..48694847 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.4 1999/12/30 18:28:40 roberto Exp roberto $ +** $Id: ldebug.c,v 1.5 2000/01/19 12:00:45 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -94,8 +94,7 @@ static const char *luaG_getname (lua_State *L, const char **name, StkId top) { if (ttype(f) == LUA_T_LCLMARK) f = protovalue(f); LUA_ASSERT(L, ttype(f) == LUA_T_LMARK, "must be a Lua function"); - LUA_ASSERT(L, ttype(&tfvalue(f)->consts[i]) == LUA_T_STRING, ""); - *name = tsvalue(&tfvalue(f)->consts[i])->str; + *name = tfvalue(f)->strcnst[i]->str; return luaO_typename(f+2); } } -- cgit v1.2.3-55-g6feb