aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1992-08-02 21:40:19 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1992-08-02 21:40:19 -0400
commitd69c4bd158c6072fa4cd8e58b236871b16259820 (patch)
tree02cd80592dec3f5232a150beb429a591ddbacd67 /gcc/tree.c
parent66b4c3adf7d73dad960094c238ed41403992faed (diff)
downloadgcc-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 054852f..44203db 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 <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