aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-08 14:06:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-08 14:06:33 -0300
commit28aa733c15e814eb5708c58063ea1fb636ec7876 (patch)
treeb7abcf9c635a6c4754b35a9cc8432f8163fdae6b
parent6abde1b05a3e7eeb45fc9c0bb77dc660a01497a5 (diff)
downloadlua-28aa733c15e814eb5708c58063ea1fb636ec7876.tar.gz
lua-28aa733c15e814eb5708c58063ea1fb636ec7876.tar.bz2
lua-28aa733c15e814eb5708c58063ea1fb636ec7876.zip
macro 'eqstr' was being used to compare non-string entities
-rw-r--r--ldebug.c4
1 files 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 @@
1/* 1/*
2** $Id: ldebug.c,v 2.67 2010/03/13 15:55:42 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.68 2010/04/05 16:26:37 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*/
@@ -427,7 +427,7 @@ static const char *getupvalname (CallInfo *ci, const TValue *o,
427 LClosure *c = &ci_func(ci)->l; 427 LClosure *c = &ci_func(ci)->l;
428 int i; 428 int i;
429 for (i = 0; i < c->nupvalues; i++) { 429 for (i = 0; i < c->nupvalues; i++) {
430 if (eqstr(c->upvals[i]->v, o)) { 430 if (c->upvals[i]->v == o) {
431 *name = getstr(c->p->upvalues[i].name); 431 *name = getstr(c->p->upvalues[i].name);
432 return "upvalue"; 432 return "upvalue";
433 } 433 }