libctf: fixes for systems on which sizeof (void *) > sizeof (long)
authorNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2020 14:38:08 +0000 (15:38 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 17:05:32 +0000 (18:05 +0100)
commit8c419a91d761989b824d1bbe3b4575068317181e
treec5876fb9131c7d553ea9503b862906533899c957
parent734c894234e800c924d97ae69d4774c9b00797dd
libctf: fixes for systems on which sizeof (void *) > sizeof (long)

Systems like mingw64 have pointers that can only be represented by 'long
long'.  Consistently cast integers stored in pointers through uintptr_t
to cater for this.

libctf/
* ctf-create.c (ctf_dtd_insert): Add uintptr_t casts.
(ctf_dtd_delete): Likewise.
(ctf_dtd_lookup): Likewise.
(ctf_rollback): Likewise.
* ctf-hash.c (ctf_hash_lookup_type): Likewise.
* ctf-types.c (ctf_lookup_by_rawhash): Likewise.
libctf/ChangeLog
libctf/ctf-create.c
libctf/ctf-hash.c
libctf/ctf-types.c
This page took 0.024799 seconds and 4 git commands to generate.