aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-12-12 14:20:07 +1030
committerAlan Modra <amodra@gmail.com>2019-12-12 16:46:30 +1030
commit199d46bebbe66a3f60717d3aa3d7b7559680d40b (patch)
tree17d99021a352ec8de73505c0ee63adbd39b27c7e /bfd/bfd-in2.h
parent873de05c85f79a385863b39b1de2a7add9d15a07 (diff)
downloadgdb-199d46bebbe66a3f60717d3aa3d7b7559680d40b.zip
gdb-199d46bebbe66a3f60717d3aa3d7b7559680d40b.tar.gz
gdb-199d46bebbe66a3f60717d3aa3d7b7559680d40b.tar.bz2
Remove duplicate cast
* libbfd.c (bfd_get): Don't cast result of bfd_get_8. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 6f3e41d..ed91ed2 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -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) \