aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@tanya.rutgers.edu>1998-01-17 22:50:40 +0000
committerJeff Law <law@gcc.gnu.org>1998-01-17 15:50:40 -0700
commit7bcac048fddfb4217b6457f61050f0499929a6c5 (patch)
treee743d2ca1fcb604f39a4230fab8087c5f6870b63 /gcc/tree.c
parentc9ec4f99bcd101ef4266f5476498187f270859fa (diff)
downloadgcc-7bcac048fddfb4217b6457f61050f0499929a6c5.zip
gcc-7bcac048fddfb4217b6457f61050f0499929a6c5.tar.gz
gcc-7bcac048fddfb4217b6457f61050f0499929a6c5.tar.bz2
varasm.c (immed_double_const): Add casts to HOST_WIDE_INT where necessary.
* varasm.c (immed_double_const): Add casts to HOST_WIDE_INT where necessary. (const_hash): Hash val is unsigned long. (SYMHASH): Likewise. * tree.c (TYPE_HASH): Type of hash val is unsigned long. * print-tree.c (print_node_brief): HOST_PTR_PRINTF format wants a char pointer, not HOST_WIDE_INT. (print_node): Likewise. Also hash is unsigned long not HOST_WIDE_INT. * cse.c (canon_hash): Hash is unsigned long not HOST_WIDE_INT. From-SVN: r17403
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index b7d06e3..eda6187 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -272,7 +272,7 @@ static int next_type_uid = 1;
/* Here is how primitive or already-canonicalized types' hash
codes are made. */
-#define TYPE_HASH(TYPE) ((HOST_WIDE_INT) (TYPE) & 0777777)
+#define TYPE_HASH(TYPE) ((unsigned long) (TYPE) & 0777777)
extern char *mode_name[];