diff options
Diffstat (limited to 'lparser.c')
| -rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.c,v 2.14 2005/03/07 16:58:27 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.15 2005/03/08 18:00:16 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 | */ |
| @@ -460,11 +460,11 @@ static void recfield (LexState *ls, struct ConsControl *cc) { | |||
| 460 | expdesc key, val; | 460 | expdesc key, val; |
| 461 | if (ls->t.token == TK_NAME) { | 461 | if (ls->t.token == TK_NAME) { |
| 462 | luaY_checklimit(fs, cc->nh, MAX_INT, "items in a constructor"); | 462 | luaY_checklimit(fs, cc->nh, MAX_INT, "items in a constructor"); |
| 463 | cc->nh++; | ||
| 464 | checkname(ls, &key); | 463 | checkname(ls, &key); |
| 465 | } | 464 | } |
| 466 | else /* ls->t.token == '[' */ | 465 | else /* ls->t.token == '[' */ |
| 467 | yindex(ls, &key); | 466 | yindex(ls, &key); |
| 467 | cc->nh++; | ||
| 468 | checknext(ls, '='); | 468 | checknext(ls, '='); |
| 469 | luaK_exp2RK(fs, &key); | 469 | luaK_exp2RK(fs, &key); |
| 470 | expr(ls, &val); | 470 | expr(ls, &val); |
