From: Michael Beck Date: Fri, 28 Jan 2011 01:06:19 +0000 (+0000) Subject: Removed superflous computations, these are done later again. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=6b26906854c2f5423fa3986a0caf3c23b200b553;hp=d85a04555ea643285364ee0f922d0260f26f2599;p=cparser Removed superflous computations, these are done later again. [r28275] --- diff --git a/parser.c b/parser.c index e0a7cc4..987c222 100644 --- a/parser.c +++ b/parser.c @@ -7697,13 +7697,6 @@ end_error:; } else if (is_type_arithmetic(true_type) && is_type_arithmetic(false_type)) { result_type = semantic_arithmetic(true_type, false_type); - - true_expression = create_implicit_cast(true_expression, result_type); - false_expression = create_implicit_cast(false_expression, result_type); - - conditional->true_expression = true_expression; - conditional->false_expression = false_expression; - conditional->base.type = result_type; } else if (same_compound_type(true_type, false_type)) { /* just take 1 of the 2 types */ result_type = true_type;