From ee97d3542d91ac097597a3b340c80c6c56d49f13 Mon Sep 17 00:00:00 2001 From: Alexandre Petit-Bianco Date: Thu, 13 Jul 2000 19:27:49 +0000 Subject: parse.y (fold_constant_for_init): Avoid bullish conversion. 2000-07-13 Alexandre Petit-Bianco * parse.y (fold_constant_for_init): Avoid bullish conversion. (http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00506.html) From-SVN: r35022 --- gcc/java/parse.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gcc/java/parse.c') diff --git a/gcc/java/parse.c b/gcc/java/parse.c index 5133edf..f1cd122 100644 --- a/gcc/java/parse.c +++ b/gcc/java/parse.c @@ -17508,12 +17508,9 @@ fold_constant_for_init (node, context) tree op0, op1, val; enum tree_code code = TREE_CODE (node); - if (code == STRING_CST) + if (code == STRING_CST || code == INTEGER_CST || code == REAL_CST) return node; - if (code == INTEGER_CST || code == REAL_CST) - return convert (TREE_TYPE (context), node); - switch (code) { case PLUS_EXPR: -- cgit v1.1