Correctly handle qualified floats in get_default_promoted_type().
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 23 Dec 2008 12:00:17 +0000 (12:00 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 23 Dec 2008 12:00:17 +0000 (12:00 +0000)
[r24857]

parser.c

index 808f750..7e83425 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -5476,7 +5476,7 @@ static type_t *get_default_promoted_type(type_t *orig_type)
        type_t *type = skip_typeref(orig_type);
        if (is_type_integer(type)) {
                result = promote_integer(type);
-       } else if (type == type_float) {
+       } else if (is_type_atomic(type, ATOMIC_TYPE_FLOAT)) {
                result = type_double;
        }