From: Dale Weiler Date: Sat, 28 Sep 2013 10:36:00 +0000 (-0400) Subject: Less casts. X-Git-Tag: 0.3.5~63 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c6056d441b8602b99a88552899239d6e7a98f08b;p=xonotic%2Fgmqcc.git Less casts. --- diff --git a/ast.c b/ast.c index 3fb27d3..ffef079 100644 --- a/ast.c +++ b/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; } }