mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-19 06:40:49 +00:00
Remove pointless thinking comment, fix builds for clang.
This commit is contained in:
parent
b10de1b240
commit
353455e1ad
2 changed files with 0 additions and 7 deletions
2
ir.c
2
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;
|
||||
|
|
5
parser.c
5
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;
|
||||
|
|
Loading…
Reference in a new issue