aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-18 16:39:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-18 16:39:49 -0300
commit42ca3105acab0eab0bd99af58e2bbdff111325f1 (patch)
tree20626fa55dab2796c2815cd4e9df49090d9596ff
parent6030d5fed4e754eec9b891aa09d37e15d5ae2562 (diff)
downloadlua-42ca3105acab0eab0bd99af58e2bbdff111325f1.tar.gz
lua-42ca3105acab0eab0bd99af58e2bbdff111325f1.tar.bz2
lua-42ca3105acab0eab0bd99af58e2bbdff111325f1.zip
small "by 1" bug
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index dec67fdc..80eff4e3 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.40 2000/09/11 20:29:27 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.41 2000/09/12 18:38:02 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*/
@@ -216,7 +216,7 @@ static const char *travtagmethods (lua_State *L, const TObject *o) {
216static const char *travglobals (lua_State *L, const TObject *o) { 216static const char *travglobals (lua_State *L, const TObject *o) {
217 Hash *g = L->gt; 217 Hash *g = L->gt;
218 int i; 218 int i;
219 for (i=0; i<=g->size; i++) { 219 for (i=0; i<g->size; i++) {
220 if (luaO_equalObj(o, val(node(g, i))) && 220 if (luaO_equalObj(o, val(node(g, i))) &&
221 ttype(key(node(g, i))) == TAG_STRING) 221 ttype(key(node(g, i))) == TAG_STRING)
222 return tsvalue(key(node(g, i)))->str; 222 return tsvalue(key(node(g, i)))->str;