OSDN Git Service

(TYPE_HASH): Use HOST_WIDE_INT instead of int when casting pointers to
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Aug 1992 01:40:19 +0000 (01:40 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Aug 1992 01:40:19 +0000 (01:40 +0000)
integers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1752 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/tree.c

index 054852f..44203db 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