diff options
author | Lua Team <team@lua.org> | 2011-12-05 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2011-12-05 12:00:00 +0000 |
commit | 3a66913821e41b57d0f5e5f464d0b7b35b4cc131 (patch) | |
tree | b35640d90c10aefe47e7822eb5de583d6fb94a64 /src/lparser.c | |
parent | ed0f7cc8d3f96dce4dac98bc395506f0513a332c (diff) | |
download | lua-github-5.2.0-rc5.tar.gz |
Lua 5.2.0-rc55.2.0-rc5
Diffstat (limited to 'src/lparser.c')
-rw-r--r-- | src/lparser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lparser.c b/src/lparser.c index c294a373..4d689365 100644 --- a/src/lparser.c +++ b/src/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 2.123 2011/11/30 12:43:51 roberto Exp $ +** $Id: lparser.c,v 2.124 2011/12/02 13:23:56 roberto Exp $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -330,7 +330,7 @@ static void adjust_assign (LexState *ls, int nvars, int nexps, expdesc *e) { static void enterlevel (LexState *ls) { lua_State *L = ls->L; ++L->nCcalls; - checklimit(ls->fs, L->nCcalls, LUAI_MAXCCALLS, "syntax levels"); + checklimit(ls->fs, L->nCcalls, LUAI_MAXCCALLS, "C levels"); } @@ -1147,8 +1147,8 @@ static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) { primaryexp(ls, &nv.v); if (nv.v.k != VINDEXED) check_conflict(ls, lh, &nv.v); - checklimit(ls->fs, nvars, LUAI_MAXCCALLS - ls->L->nCcalls, - "variable names"); + checklimit(ls->fs, nvars + ls->L->nCcalls, LUAI_MAXCCALLS, + "C levels"); assignment(ls, &nv, nvars+1); } else { /* assignment -> `=' explist */ |