* c-decl.c (build_enumerator): Don't modify the value's type,
convert it.
From-SVN: r34131
+2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
+
+ * c-decl.c (build_enumerator): Don't modify the value's type,
+ convert it.
+
2000-05-24 Andreas Jaeger <aj@suse.de>
* mips.h (LINKER_ENDIAN_SPEC): Pass -EL to linker by default.
&& 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);