This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Make bfd_get_8 return a bfd_vma like other bfd_get_* functions


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]