aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lparser.c b/lparser.c
index dce3db5c..8468ab0e 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.51 2007/02/07 17:49:18 roberto Exp roberto $ 2** $Id: lparser.c,v 2.52 2007/03/27 14:11:38 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*/
@@ -522,8 +522,7 @@ static void constructor (LexState *ls, expdesc *t) {
522 closelistfield(fs, &cc); 522 closelistfield(fs, &cc);
523 switch(ls->t.token) { 523 switch(ls->t.token) {
524 case TK_NAME: { /* may be listfields or recfields */ 524 case TK_NAME: { /* may be listfields or recfields */
525 luaX_lookahead(ls); 525 if (luaX_lookahead(ls) != '=') /* expression? */
526 if (ls->lookahead.token != '=') /* expression? */
527 listfield(ls, &cc); 526 listfield(ls, &cc);
528 else 527 else
529 recfield(ls, &cc); 528 recfield(ls, &cc);