diff options
author | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-03 06:56:16 +0000 |
---|---|---|
committer | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-03 06:56:16 +0000 |
commit | 0f061ed25c1fefe342fc482e0a7710b4ca00796b (patch) | |
tree | 86f0acf5594e350d118d04149f47f6173b61516f /gcc/pointer-set.c | |
parent | d0bcce51efb6cae2c19a7ee3fd8d46ca5a17b0ba (diff) | |
download | gcc-0f061ed25c1fefe342fc482e0a7710b4ca00796b.tar.gz |
PR target/53912
* pointer-set.c (hash1): Cast from pointer via uintptr_t.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194067 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/pointer-set.c')
-rw-r--r-- | gcc/pointer-set.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/pointer-set.c b/gcc/pointer-set.c index b57c404f6a1..ebad5dbf5b3 100644 --- a/gcc/pointer-set.c +++ b/gcc/pointer-set.c @@ -64,7 +64,7 @@ hash1 (const void *p, unsigned long max, unsigned long logmax) #endif const unsigned long shift = HOST_BITS_PER_LONG - logmax; - return ((A * (unsigned long) p) >> shift) & (max - 1); + return ((A * (uintptr_t) p) >> shift) & (max - 1); } /* Allocate an empty pointer set. */ |