From: Christoph Mallon Date: Mon, 15 Sep 2008 12:50:12 +0000 (+0000) Subject: Get unqualified types before doing anything in semantic_arithmetic(). X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=4ccdad496797f05c13ddb2723c52e42eb9023496;p=cparser Get unqualified types before doing anything in semantic_arithmetic(). [r21967] --- diff --git a/parser.c b/parser.c index 7bfb77f..1502d2e 100644 --- a/parser.c +++ b/parser.c @@ -7597,6 +7597,9 @@ static type_t *semantic_arithmetic(type_t *type_left, type_t *type_right) { /* TODO: handle complex + imaginary types */ + type_left = get_unqualified_type(type_left); + type_right = get_unqualified_type(type_right); + /* § 6.3.1.8 Usual arithmetic conversions */ if (type_left == type_long_double || type_right == type_long_double) { return type_long_double;