diff options
Diffstat (limited to 'gcc/java/typeck.c')
-rw-r--r-- | gcc/java/typeck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/typeck.c b/gcc/java/typeck.c index 2b85e475d95..dcd201de777 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) |