Minor simplification.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 2 Sep 2009 06:21:16 +0000 (06:21 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 2 Sep 2009 06:21:16 +0000 (06:21 +0000)
[r26466]

parser.c

index dc94f49..6e2685b 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -2521,11 +2521,7 @@ static void append_entity(scope_t *scope, entity_t *entity)
 
 static compound_t *parse_compound_type_specifier(bool is_struct)
 {
-       if (is_struct) {
-               eat(T_struct);
-       } else {
-               eat(T_union);
-       }
+       eat(is_struct ? T_struct : T_union);
 
        symbol_t    *symbol   = NULL;
        compound_t  *compound = NULL;