diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-06-22 13:12:59 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-06-22 13:12:59 -0300 |
| commit | ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f (patch) | |
| tree | fc2ac2bea24400ec815be94ba916b41f6f8cd104 /lparser.c | |
| parent | 98194db4295726069137d13b8d24fca8cbf892b6 (diff) | |
| download | lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.gz lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.bz2 lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.zip | |
details
Diffstat (limited to 'lparser.c')
| -rw-r--r-- | lparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 | ||
| 276 | static void enterlevel (LexState *ls) { | 276 | static 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 | ||
