diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-09-03 16:46:55 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-09-03 16:46:55 +0000 |
commit | fca6a796b7fafc1254c61fb2bf36e1bd8893eef8 (patch) | |
tree | 192dc8e01d1eecc17ba900f5a76f30a4364aaddb /libiberty/hashtab.c | |
parent | bd03da308991692d9e3f7c60135f811f11f65e49 (diff) | |
download | gdb-fca6a796b7fafc1254c61fb2bf36e1bd8893eef8.zip gdb-fca6a796b7fafc1254c61fb2bf36e1bd8893eef8.tar.gz 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.c | 2 |
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. */ |