Showing the changes to src/lparser.c (1 of 60 files). Show all
Unified · Split
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | /* |
| 2 | −** $Id: lparser.c,v 2.42a 2006/06/05 15:57:59 roberto Exp $ | |
| 2 | +** $Id: lparser.c,v 2.42.1.3 2007/12/28 15:32:23 roberto Exp $ | |
| 3 | 3 | ** Lua Parser |
| 4 | 4 | ** See Copyright Notice in lua.h |
| 5 | 5 | */ |
| @@ -938,6 +938,8 @@ static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) { · 932 unmodified lines | ||
| 938 | 938 | primaryexp(ls, &nv.v); |
| 939 | 939 | if (nv.v.k == VLOCAL) |
| 940 | 940 | check_conflict(ls, lh, &nv.v); |
| 941 | + luaY_checklimit(ls->fs, nvars, LUAI_MAXCCALLS - ls->L->nCcalls, | |
| 942 | + "variables in assignment"); | |
| 941 | 943 | assignment(ls, &nv, nvars+1); |
| 942 | 944 | } |
| 943 | 945 | else { /* assignment -> `=' explist1 */ |