Remove duplicate cast
* libbfd.c (bfd_get): Don't cast result of bfd_get_8. * bfd-in2.h: Regenerate.
This commit is contained in:
parent
873de05c85
commit
199d46bebb
@ -1,3 +1,8 @@
|
||||
2019-12-12 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* libbfd.c (bfd_get): Don't cast result of bfd_get_8.
|
||||
* bfd-in2.h: Regenerate.
|
||||
|
||||
2019-12-11 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* elf32-rx.c (elf32_rx_relax_section): Avoid signed overflow.
|
||||
|
@ -700,7 +700,7 @@ bfd_vma bfd_getl24 (const void *p);
|
||||
BFD_SEND (abfd, bfd_getx_signed_64, (ptr))
|
||||
|
||||
#define bfd_get(bits, abfd, ptr) \
|
||||
((bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr) \
|
||||
((bits) == 8 ? bfd_get_8 (abfd, ptr) \
|
||||
: (bits) == 16 ? bfd_get_16 (abfd, ptr) \
|
||||
: (bits) == 32 ? bfd_get_32 (abfd, ptr) \
|
||||
: (bits) == 64 ? bfd_get_64 (abfd, ptr) \
|
||||
|
@ -495,7 +495,7 @@ DESCRIPTION
|
||||
. BFD_SEND (abfd, bfd_getx_signed_64, (ptr))
|
||||
.
|
||||
.#define bfd_get(bits, abfd, ptr) \
|
||||
. ((bits) == 8 ? (bfd_vma) bfd_get_8 (abfd, ptr) \
|
||||
. ((bits) == 8 ? bfd_get_8 (abfd, ptr) \
|
||||
. : (bits) == 16 ? bfd_get_16 (abfd, ptr) \
|
||||
. : (bits) == 32 ? bfd_get_32 (abfd, ptr) \
|
||||
. : (bits) == 64 ? bfd_get_64 (abfd, ptr) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user