Fix compile time warning by using an unsigned type.

This commit is contained in:
Nick Clifton 2005-02-11 15:59:51 +00:00
parent ca724bf2da
commit 4b74b98302
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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;