]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fixing comma operator
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Fri, 27 Jul 2012 11:42:02 +0000 (13:42 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Fri, 27 Jul 2012 11:42:02 +0000 (13:42 +0200)
parser.c

index cfd705088ff43fc11673e8e89eba08b6579db294..8fe3e6196fbe101a3df5e24e6f58bfdf809192d3 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -316,8 +316,9 @@ static bool parser_sy_pop(parser_t *parser, shunt *sy)
             }
             if (!ast_block_set_type(blocks[0], exprs[1]))
                 return false;
-            out = blocks[0];
-            break;
+
+            sy->out[sy->out_count++] = syblock(ctx, blocks[0]);
+            return true;
 
         case opid1('+'):
             if (exprs[0]->expression.vtype != exprs[1]->expression.vtype) {