better field name

This commit is contained in:
Roberto Ierusalimschy
2000-05-30 16:00:31 -03:00
parent f63d7753b8
commit 7e30900def
7 changed files with 19 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ldebug.c,v 1.19 2000/05/12 19:49:18 roberto Exp roberto $
** $Id: ldebug.c,v 1.20 2000/05/15 19:30:41 roberto Exp roberto $
** Debug Interface
** See Copyright Notice in lua.h
*/
@@ -89,7 +89,7 @@ static int lua_nups (StkId f) {
switch (ttype(f)) {
case TAG_LCLOSURE: case TAG_CCLOSURE:
case TAG_LMARK: case TAG_CMARK:
return f->value.cl->nelems;
return f->value.cl->nupvalues;
default:
return 0;
}