diff options
author | Nick Clifton <nickc@redhat.com> | 2001-09-21 14:25:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-09-21 14:25:09 +0000 |
commit | 1e738b87c87fe468ba6dd11f8e94e937d0ee665f (patch) | |
tree | 3b3e27dbacad4771a4eaae2c0a2b191c322a0670 /include/coff | |
parent | 2ca0d95257f38e932db032b87e17a4b538e47d49 (diff) | |
download | gdb-1e738b87c87fe468ba6dd11f8e94e937d0ee665f.zip gdb-1e738b87c87fe468ba6dd11f8e94e937d0ee665f.tar.gz gdb-1e738b87c87fe468ba6dd11f8e94e937d0ee665f.tar.bz2 |
Fix compile time warnings
Diffstat (limited to 'include/coff')
-rw-r--r-- | include/coff/ChangeLog | 4 | ||||
-rw-r--r-- | include/coff/ti.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/coff/ChangeLog b/include/coff/ChangeLog index b95d7b5..5cc0aac 100644 --- a/include/coff/ChangeLog +++ b/include/coff/ChangeLog @@ -1,3 +1,7 @@ +2001-09-21 Nick Clifton <nickc@cambridge.redhat.com> + + * ti.h (GET_SCNHDR_PAGE): Fix compile time warning. + 2001-09-18 Alan Modra <amodra@bigpond.net.au> * external.h (GET_LINENO_LNNO): Use H_GET_32/16. diff --git a/include/coff/ti.h b/include/coff/ti.h index 5c58d89..7f45a56e 100644 --- a/include/coff/ti.h +++ b/include/coff/ti.h @@ -219,7 +219,7 @@ struct external_scnhdr { #define PUT_SCNHDR_FLAGS(ABFD, VAL, PTR) \ (COFF2_P (ABFD) ? H_PUT_32 (ABFD, VAL, PTR) : H_PUT_16 (ABFD, VAL, (PTR) -4)) #define GET_SCNHDR_PAGE(ABFD, PTR) \ - (COFF2_P (ABFD) ? H_GET_16 (ABFD, PTR) : H_GET_8 (ABFD, (PTR) -7)) + (COFF2_P (ABFD) ? H_GET_16 (ABFD, PTR) : (unsigned) H_GET_8 (ABFD, (PTR) -7)) /* on output, make sure that the "reserved" field is zero */ #define PUT_SCNHDR_PAGE(ABFD, VAL, PTR) \ (COFF2_P (ABFD) \ |