From c6056d441b8602b99a88552899239d6e7a98f08b Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sat, 28 Sep 2013 06:36:00 -0400 Subject: [PATCH] Less casts. --- ast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.39.2