[PATCH 40/59] fixup! libctf: rename the type_mapping_key to type_key
Nick Alcock
nick.alcock@oracle.com
Wed Jul 22 09:35:40 GMT 2020
Fixes for systems on which sizeof (void *) > sizeof (long).
---
libctf/ctf-hash.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libctf/ctf-hash.c b/libctf/ctf-hash.c
index fd5d61ed7b8..297526094cc 100644
--- a/libctf/ctf-hash.c
+++ b/libctf/ctf-hash.c
@@ -101,7 +101,8 @@ ctf_hash_type_key (const void *ptr)
ctf_helem_t *hep = (ctf_helem_t *) ptr;
ctf_link_type_key_t *k = (ctf_link_type_key_t *) hep->key;
- return htab_hash_pointer (k->cltk_fp) + 59 * htab_hash_pointer ((void *) k->cltk_idx);
+ return htab_hash_pointer (k->cltk_fp) + 59
+ * htab_hash_pointer ((void *) (uintptr_t) k->cltk_idx);
}
int
--
2.27.0.247.g3dff7de930
More information about the Binutils
mailing list