Make bfd_get_8 return a bfd_vma like other bfd_get_* functions
Andreas Schwab
schwab@suse.de
Wed Dec 11 11:22:00 GMT 2019
On Dez 11 2019, Alan Modra wrote:
> diff --git a/bfd/libbfd.c b/bfd/libbfd.c
> index 6ff7172a0f..3a3e523bcc 100644
> --- a/bfd/libbfd.c
> +++ b/bfd/libbfd.c
> @@ -449,9 +449,9 @@ DESCRIPTION
> .#define bfd_put_signed_8 \
> . bfd_put_8
> .#define bfd_get_8(abfd, ptr) \
> -. (*(const unsigned char *) (ptr) & 0xff)
> +. ((bfd_vma) *(const unsigned char *) (ptr) & 0xff)
There is now a redundant cast in the bfd_get macro.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Binutils
mailing list