From e526d79af7409ab71f8fe65a878a5d5d98e6a990 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Mon, 17 Dec 2007 18:01:54 +0000 Subject: [PATCH] When parsing a union declaration, build a union type, not a struct type. [r18786] --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index d871a80..c4b9187 100644 --- a/parser.c +++ b/parser.c @@ -1610,7 +1610,7 @@ static void parse_declaration_specifiers(declaration_specifiers_t *specifiers) break; } case T_union: { - type = allocate_type_zero(TYPE_COMPOUND_STRUCT); + type = allocate_type_zero(TYPE_COMPOUND_UNION); type->compound.declaration = parse_compound_type_specifier(false); break; -- 2.20.1