diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-18 16:39:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-18 16:39:49 -0300 |
commit | 42ca3105acab0eab0bd99af58e2bbdff111325f1 (patch) | |
tree | 20626fa55dab2796c2815cd4e9df49090d9596ff | |
parent | 6030d5fed4e754eec9b891aa09d37e15d5ae2562 (diff) | |
download | lua-42ca3105acab0eab0bd99af58e2bbdff111325f1.tar.gz lua-42ca3105acab0eab0bd99af58e2bbdff111325f1.tar.bz2 lua-42ca3105acab0eab0bd99af58e2bbdff111325f1.zip |
small "by 1" bug
-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.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) { | |||
216 | static const char *travglobals (lua_State *L, const TObject *o) { | 216 | static 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; |