From 55560b9da47bf6fef84d3b217e9019b0a07b1821 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 3 Jan 2001 00:13:33 +0000 Subject: * fold-const.c (fold_convert): Fix typo. From-SVN: r38640 --- gcc/ChangeLog | 4 ++++ gcc/fold-const.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1e3497f..adb0b31 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-01-02 Mark Mitchell + + * fold-const.c (fold_convert): Fix typo. + 2001-01-02 Richard Henderson * c-common.h (ASM_INPUT_P): New. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index a0a76b2..b02fdaa 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2020,7 +2020,7 @@ fold_convert (t, arg1) /* If we are trying to make a sizetype for a small integer, use size_int to pick up cached types to reduce duplicate nodes. */ - if (TREE_CODE (type) == INTEGER_CST && TYPE_IS_SIZETYPE (type) + if (TREE_CODE (type) == INTEGER_TYPE && TYPE_IS_SIZETYPE (type) && compare_tree_int (arg1, 10000) < 0) return size_int_type_wide (TREE_INT_CST_LOW (arg1), type); -- cgit v1.1