diff options
author | Nick Clifton <nickc@redhat.com> | 2005-02-11 15:59:51 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-02-11 15:59:51 +0000 |
commit | 4b74b98302cefd45d7a05d33698f693bd6ac3379 (patch) | |
tree | 0a603ba2135f2a948ee62ac00487672d6a552c20 | |
parent | ca724bf2dab9f9cc4459320f696720b064ebfed9 (diff) | |
download | gdb-4b74b98302cefd45d7a05d33698f693bd6ac3379.zip gdb-4b74b98302cefd45d7a05d33698f693bd6ac3379.tar.gz gdb-4b74b98302cefd45d7a05d33698f693bd6ac3379.tar.bz2 |
Fix compile time warning by using an unsigned type.
-rw-r--r-- | bfd/ChangeLog | 3 | ||||
-rw-r--r-- | bfd/libbfd.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 099c703..5e622c5 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2005-02-11 Nick Clifton <nickc@redhat.com> + * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift' + to avoid a compile time warning. + * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from BFD_ASSERT. diff --git a/bfd/libbfd.c b/bfd/libbfd.c index b2f83c4..ec1864c 100644 --- a/bfd/libbfd.c +++ b/bfd/libbfd.c @@ -897,7 +897,7 @@ read_signed_leb128 (bfd *abfd ATTRIBUTE_UNUSED, unsigned int * bytes_read_ptr) { bfd_vma result; - int shift; + unsigned shift; int num_read; unsigned char byte; |