* typeck.c: Use fold_convert for ints and booleans.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92419
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-12-20 Andrew Haley <aph@redhat.com>
+
+ * typeck.c: Use fold_convert for ints and booleans.
+
2004-12-17 Andrew Haley <aph@redhat.com>
PR java/18931
if (code == VOID_TYPE)
return build1 (CONVERT_EXPR, type, expr);
if (code == BOOLEAN_TYPE || code == CHAR_TYPE)
- return fold (build1 (CONVERT_EXPR, type, expr));
+ return fold_convert (type, expr);
if (code == INTEGER_TYPE)
{
if ((really_constant_p (expr)