bug: wrong limit for list constructors
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lparser.c,v 2.43 2006/06/22 16:12:59 roberto Exp roberto $
|
||||
** $Id: lparser.c,v 2.44 2006/07/11 15:53:29 roberto Exp roberto $
|
||||
** Lua Parser
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -495,7 +495,7 @@ static void lastlistfield (FuncState *fs, struct ConsControl *cc) {
|
||||
|
||||
static void listfield (LexState *ls, struct ConsControl *cc) {
|
||||
expr(ls, &cc->v);
|
||||
luaY_checklimit(ls->fs, cc->na, MAXARG_Bx, "items in a constructor");
|
||||
luaY_checklimit(ls->fs, cc->na, MAX_INT, "items in a constructor");
|
||||
cc->na++;
|
||||
cc->tostore++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user