diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 20c6089..34fca5d 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -5666,8 +5666,7 @@ build_enumerator (name, value) && TREE_UNSIGNED (type))); decl = build_decl (CONST_DECL, name, type); - DECL_INITIAL (decl) = value; - TREE_TYPE (value) = type; + DECL_INITIAL (decl) = convert (type, value); pushdecl (decl); return tree_cons (decl, value, NULL_TREE); |