summaryrefslogtreecommitdiff
path: root/gcc/pointer-set.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/pointer-set.c')
-rw-r--r--gcc/pointer-set.c2
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. */