From ddc144e4d297e5e008f5693a568a1c74ac3e4f54 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 21 Nov 2002 13:16:04 -0200 Subject: keep L->ci->base in L->base for faster access --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 798d7eea..8dce4a8f 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.136 2002/11/07 15:37:10 roberto Exp roberto $ +** $Id: ldebug.c,v 1.137 2002/11/18 11:01:55 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -497,7 +497,7 @@ void luaG_typeerror (lua_State *L, const TObject *o, const char *op) { const char *name = NULL; const char *t = luaT_typenames[ttype(o)]; const char *kind = (isinstack(L->ci, o)) ? - getobjname(L->ci, o - L->ci->base, &name) : NULL; + getobjname(L->ci, o - L->base, &name) : NULL; if (kind) luaG_runerror(L, "attempt to %s %s `%s' (a %s value)", op, kind, name, t); -- cgit v1.2.3-55-g6feb