aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-06-22 13:12:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-06-22 13:12:59 -0300
commitee41bc03ab0af1b1d0c4a90e172b05cda3dac38f (patch)
treefc2ac2bea24400ec815be94ba916b41f6f8cd104 /lparser.c
parent98194db4295726069137d13b8d24fca8cbf892b6 (diff)
downloadlua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.gz
lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.bz2
lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.zip
details
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lparser.c b/lparser.c
index f98eb258..d10fcb59 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.41 2006/03/09 18:15:48 roberto Exp roberto $ 2** $Id: lparser.c,v 2.42 2006/06/05 15:57:59 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -274,8 +274,8 @@ static void adjust_assign (LexState *ls, int nvars, int nexps, expdesc *e) {
274 274
275 275
276static void enterlevel (LexState *ls) { 276static void enterlevel (LexState *ls) {
277 if (++ls->L->nCcalls > LUAI_MAXCCALLS) 277 ++ls->L->nCcalls;
278 luaX_lexerror(ls, "chunk has too many syntax levels", 0); 278 luaY_checklimit(ls->fs, ls->L->nCcalls, LUAI_MAXCCALLS, "syntax levels");
279} 279}
280 280
281 281