summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 798d7eea..8dce4a8f 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -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);