From d69c4bd158c6072fa4cd8e58b236871b16259820 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 2 Aug 1992 21:40:19 -0400 Subject: [PATCH] (TYPE_HASH): Use HOST_WIDE_INT instead of int when casting pointers to integers. From-SVN: r1752 --- gcc/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/tree.c b/gcc/tree.c index 054852fa113..44203dbb39d 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -35,8 +35,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "config.h" #include #include "flags.h" -#include "function.h" #include "tree.h" +#include "function.h" #include "obstack.h" #include "gvarargs.h" @@ -2291,7 +2291,7 @@ struct type_hash *type_hash_table[TYPE_HASH_SIZE]; /* Here is how primitive or already-canonicalized types' hash codes are made. */ -#define TYPE_HASH(TYPE) ((int) (TYPE) & 0777777) +#define TYPE_HASH(TYPE) ((HOST_WIDE_INT) (TYPE) & 0777777) /* Compute a hash code for a list of types (chain of TREE_LIST nodes with types in the TREE_VALUE slots), by adding the hash codes -- 2.30.2