diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1992-08-02 21:40:19 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1992-08-02 21:40:19 -0400 |
commit | d69c4bd158c6072fa4cd8e58b236871b16259820 (patch) | |
tree | 02cd80592dec3f5232a150beb429a591ddbacd67 /gcc/tree.c | |
parent | 66b4c3adf7d73dad960094c238ed41403992faed (diff) | |
download | gcc-d69c4bd158c6072fa4cd8e58b236871b16259820.zip gcc-d69c4bd158c6072fa4cd8e58b236871b16259820.tar.gz gcc-d69c4bd158c6072fa4cd8e58b236871b16259820.tar.bz2 |
(TYPE_HASH): Use HOST_WIDE_INT instead of int when casting pointers to
integers.
From-SVN: r1752
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -35,8 +35,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "config.h" #include <stdio.h> #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 |