From 28aa733c15e814eb5708c58063ea1fb636ec7876 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 8 Apr 2010 14:06:33 -0300 Subject: macro 'eqstr' was being used to compare non-string entities --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldebug.c b/ldebug.c index 43b532dd..03c86762 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.67 2010/03/13 15:55:42 roberto Exp roberto $ +** $Id: ldebug.c,v 2.68 2010/04/05 16:26:37 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -427,7 +427,7 @@ static const char *getupvalname (CallInfo *ci, const TValue *o, LClosure *c = &ci_func(ci)->l; int i; for (i = 0; i < c->nupvalues; i++) { - if (eqstr(c->upvals[i]->v, o)) { + if (c->upvals[i]->v == o) { *name = getstr(c->p->upvalues[i].name); return "upvalue"; } -- cgit v1.2.3-55-g6feb