mirror of
https://github.com/lua/lua
synced 2024-11-22 21:01:26 +03:00
small "by 1" bug
This commit is contained in:
parent
6030d5fed4
commit
42ca3105ac
4
ldebug.c
4
ldebug.c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: ldebug.c,v 1.40 2000/09/11 20:29:27 roberto Exp roberto $
|
||||
** $Id: ldebug.c,v 1.41 2000/09/12 18:38:02 roberto Exp roberto $
|
||||
** Debug Interface
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -216,7 +216,7 @@ static const char *travtagmethods (lua_State *L, const TObject *o) {
|
||||
static const char *travglobals (lua_State *L, const TObject *o) {
|
||||
Hash *g = L->gt;
|
||||
int i;
|
||||
for (i=0; i<=g->size; i++) {
|
||||
for (i=0; i<g->size; i++) {
|
||||
if (luaO_equalObj(o, val(node(g, i))) &&
|
||||
ttype(key(node(g, i))) == TAG_STRING)
|
||||
return tsvalue(key(node(g, i)))->str;
|
||||
|
Loading…
Reference in New Issue
Block a user