This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Make bfd_get_8 return a bfd_vma like other bfd_get_* functions
- From: Andreas Schwab <schwab at suse dot de>
- To: Alan Modra <amodra at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 11 Dec 2019 12:22:47 +0100
- Subject: Re: Make bfd_get_8 return a bfd_vma like other bfd_get_* functions
- References: <20191211111355.GP32672@bubble.grove.modra.org>
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."