diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-21 13:16:04 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-21 13:16:04 -0200 |
commit | ddc144e4d297e5e008f5693a568a1c74ac3e4f54 (patch) | |
tree | 273211ca4e0add6f5aa9e28b494e94d3267fbcc3 /ldebug.c | |
parent | b48c6e768035a44ced1af0affa4b8c0970f1bdfd (diff) | |
download | lua-ddc144e4d297e5e008f5693a568a1c74ac3e4f54.tar.gz lua-ddc144e4d297e5e008f5693a568a1c74ac3e4f54.tar.bz2 lua-ddc144e4d297e5e008f5693a568a1c74ac3e4f54.zip |
keep L->ci->base in L->base for faster access
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.136 2002/11/07 15:37:10 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.137 2002/11/18 11:01:55 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -497,7 +497,7 @@ void luaG_typeerror (lua_State *L, const TObject *o, const char *op) { | |||
497 | const char *name = NULL; | 497 | const char *name = NULL; |
498 | const char *t = luaT_typenames[ttype(o)]; | 498 | const char *t = luaT_typenames[ttype(o)]; |
499 | const char *kind = (isinstack(L->ci, o)) ? | 499 | const char *kind = (isinstack(L->ci, o)) ? |
500 | getobjname(L->ci, o - L->ci->base, &name) : NULL; | 500 | getobjname(L->ci, o - L->base, &name) : NULL; |
501 | if (kind) | 501 | if (kind) |
502 | luaG_runerror(L, "attempt to %s %s `%s' (a %s value)", | 502 | luaG_runerror(L, "attempt to %s %s `%s' (a %s value)", |
503 | op, kind, name, t); | 503 | op, kind, name, t); |