mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Less casts.
This commit is contained in:
parent
7c25af973c
commit
c6056d441b
1 changed files with 2 additions and 2 deletions
4
ast.c
4
ast.c
|
@ -519,12 +519,12 @@ ast_unary* ast_unary_new(lex_ctx_t ctx, int op,
|
|||
self->operand = expr;
|
||||
|
||||
if (ast_istype(expr, ast_unary)) {
|
||||
ast_expression *prev = (ast_expression*)((ast_unary*)expr)->operand;
|
||||
ast_unary *prev = (ast_unary*)((ast_unary*)expr)->operand;
|
||||
if (ast_istype(prev, ast_unary)) {
|
||||
ast_expression_delete((ast_expression*)self);
|
||||
mem_d(self);
|
||||
++opts_optimizationcount[OPTIM_PEEPHOLE];
|
||||
return (ast_unary*)prev;
|
||||
return prev;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue