* fold-const.c (fold_convert): Fix typo.

From-SVN: r38640
This commit is contained in:
Mark Mitchell 2001-01-03 00:13:33 +00:00 committed by Mark Mitchell
parent f5826791be
commit 55560b9da4
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-01-02 Mark Mitchell <mark@codesourcery.com>
* fold-const.c (fold_convert): Fix typo.
2001-01-02 Richard Henderson <rth@redhat.com>
* c-common.h (ASM_INPUT_P): New.

View File

@ -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);