aboutsummaryrefslogtreecommitdiff
path: root/libiberty/hashtab.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-09-03 16:46:55 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-09-03 16:46:55 +0000
commitfca6a796b7fafc1254c61fb2bf36e1bd8893eef8 (patch)
tree192dc8e01d1eecc17ba900f5a76f30a4364aaddb /libiberty/hashtab.c
parentbd03da308991692d9e3f7c60135f811f11f65e49 (diff)
downloadfsf-binutils-gdb-fca6a796b7fafc1254c61fb2bf36e1bd8893eef8.zip
fsf-binutils-gdb-fca6a796b7fafc1254c61fb2bf36e1bd8893eef8.tar.gz
fsf-binutils-gdb-fca6a796b7fafc1254c61fb2bf36e1bd8893eef8.tar.bz2
2009-09-03 Ozkan Sezer <sezeroz@gmail.com>
PR target/39065 * configure.ac: Also check for intptr_t. * config.h.in: Regenerated. * configure: Regenerated. * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t instead of of long.
Diffstat (limited to 'libiberty/hashtab.c')
-rw-r--r--libiberty/hashtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c
index 3e64921..8c8bd31 100644
--- a/libiberty/hashtab.c
+++ b/libiberty/hashtab.c
@@ -196,7 +196,7 @@ higher_prime_index (unsigned long n)
static hashval_t
hash_pointer (const PTR p)
{
- return (hashval_t) ((long)p >> 3);
+ return (hashval_t) ((intptr_t)p >> 3);
}
/* Returns non-zero if P1 and P2 are equal. */