(TYPE_HASH): Use HOST_WIDE_INT instead of int when casting pointers to
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 3 Aug 1992 01:40:19 +0000 (21:40 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 3 Aug 1992 01:40:19 +0000 (21:40 -0400)
integers.

From-SVN: r1752

gcc/tree.c

index 054852fa113e3d9483d7ac75ce92f878ebc64f16..44203dbb39da7e88ab59d281eb05612ca9c21051 100644 (file)
@@ -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