aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-05 08:35:35 +0800
committerTeddy <[email protected]>2014-04-05 08:35:35 +0800
commit509a963559aba5429ea876af910e86954ca6e1ac (patch)
treec79a24bf0ecdcd77b5f216eeedf6ec4888c97594
parent3e27b6426011dfda8cc79672f2c821ae2ac12726 (diff)
...
-rw-r--r--semantics.c5
1 files changed, 4 insertions, 1 deletions
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: