diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-03 16:46:00 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-03 16:46:00 +0000 |
commit | 60b8aedaf675746fa97711694ff868889b1acf7e (patch) | |
tree | 4f84a6682bd1aaed5aa99472dceeb58546c9315f /libiberty/hashtab.c | |
parent | 8c3c665582f99fd2a54866b54f219dc1df572cad (diff) | |
download | gcc-60b8aedaf675746fa97711694ff868889b1acf7e.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151386 138bc75d-0d04-0410-961f-82ee72b054a4
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 3e649215f42..8c8bd3110ad 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. */ |