From 509a963559aba5429ea876af910e86954ca6e1ac Mon Sep 17 00:00:00 2001 From: Teddy Date: Sat, 5 Apr 2014 08:35:35 +0800 Subject: ... --- semantics.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/semantics.c b/semantics.c index ab802aa..b66f93b 100644 --- a/semantics.c +++ b/semantics.c @@ -1068,7 +1068,10 @@ ExpType semantics_exp(CNode *p, CScope_t scope) { switch (p->rec.subtype) { /* following cases are binary expressions */ - case ',': res = op2; break; + case ',': + res = op2; + res.lval = 0; + break; case '=' : case ASS_MUL: case ASS_DIV: -- cgit v1.2.3-70-g09d2