diff options
author | Andrew Haley <aph@redhat.com> | 2004-12-20 13:35:25 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2004-12-20 13:35:25 +0000 |
commit | 521fce52171c106ab750800f9b4251280058cb6c (patch) | |
tree | 09b6a491ac6c8bc5e85ff3de5e1c18c7a9b099af /gcc/java | |
parent | 094a624bbd20f1817acfdbbf3432af7136e1f762 (diff) | |
download | gcc-521fce52171c106ab750800f9b4251280058cb6c.zip gcc-521fce52171c106ab750800f9b4251280058cb6c.tar.gz gcc-521fce52171c106ab750800f9b4251280058cb6c.tar.bz2 |
typeck.c: Use fold_convert for ints and booleans.
2004-12-20 Andrew Haley <aph@redhat.com>
* typeck.c: Use fold_convert for ints and booleans.
From-SVN: r92419
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/typeck.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index fba1833..61f0a6f 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c index 2b85e47..dcd201d 100644 --- a/gcc/java/typeck.c +++ b/gcc/java/typeck.c @@ -130,7 +130,7 @@ convert (tree type, tree expr) 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) |