]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Remove pointless thinking comment, fix builds for clang.
authorDale Weiler <killfieldengine@gmail.com>
Mon, 30 Sep 2013 02:06:26 +0000 (22:06 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Mon, 30 Sep 2013 02:06:26 +0000 (22:06 -0400)
ir.c
parser.c

diff --git a/ir.c b/ir.c
index 49d4b2f02e26354024e1db26da4765bbb639c78f..f33e48c54ee64d601cdbbb9f17eb1cc0c48eb126 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -1889,10 +1889,8 @@ ir_value* ir_block_create_unary(ir_block *self, lex_ctx_t ctx,
          */
         case VINSTR_NEG_F:
             return ir_block_create_general_instr(self, ctx, label, INSTR_SUB_F, NULL, operand, ot);
-            break;
         case VINSTR_NEG_V:
             return ir_block_create_general_instr(self, ctx, label, INSTR_SUB_V, NULL, operand, ot);
-            break;
 
         default:
             ot = operand->vtype;
index 7d4698e331c45d8558197f70d1c0b8905ee66cee..b5f6fe4d3415c3489f9aee37d12c83e8932b934c 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -472,11 +472,6 @@ static bool parser_sy_apply_operator(parser_t *parser, shunt *sy)
                                       type_name[exprs[0]->vtype]);
                     return false;
                 }
-                /*
-                 * TYPE_VECTOR  = TYPE_FLOAT+1,
-                 * VINSTR_NEG_V = VINSTR_NEG_F+1,
-                 * thus (VINSTR_NEG_F-TYPE_FLOAT) + TYPE_* = VINSTR_NEG_*.
-                 */
                 out = (ast_expression*)ast_unary_new(ctx, (VINSTR_NEG_F-TYPE_FLOAT) + exprs[0]->vtype, exprs[0]);
             }
             break;