diff options
author | Alan Modra <amodra@gmail.com> | 2011-05-07 13:48:50 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2011-05-07 13:48:50 +0000 |
commit | 70778fc76803fd416f0bb898773811f12baa0714 (patch) | |
tree | e35ec1a9fa95c42031589d7d24348580789af963 /bfd/bfd-in2.h | |
parent | 6303c4aebd1c9f36d620adb9221f6f27d57e210d (diff) | |
download | gdb-70778fc76803fd416f0bb898773811f12baa0714.zip gdb-70778fc76803fd416f0bb898773811f12baa0714.tar.gz gdb-70778fc76803fd416f0bb898773811f12baa0714.tar.bz2 |
PR 12739
* libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast.
* bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 76836b1..aa12c8a 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1029,9 +1029,9 @@ bfd_boolean bfd_fill_in_gnu_debuglink_section #define bfd_put_signed_8 \ bfd_put_8 #define bfd_get_8(abfd, ptr) \ - (*(unsigned char *) (ptr) & 0xff) + (*(const unsigned char *) (ptr) & 0xff) #define bfd_get_signed_8(abfd, ptr) \ - (((*(unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80) + (((*(const unsigned char *) (ptr) & 0xff) ^ 0x80) - 0x80) #define bfd_put_16(abfd, val, ptr) \ BFD_SEND (abfd, bfd_putx16, ((val),(ptr))) |