From: Nick Clifton Date: Fri, 11 Feb 2005 15:59:51 +0000 (+0000) Subject: Fix compile time warning by using an unsigned type. X-Git-Tag: binutils-2_16-branchpoint~329 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b74b98302cefd45d7a05d33698f693bd6ac3379;p=thirdparty%2Fbinutils-gdb.git Fix compile time warning by using an unsigned type. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 099c7032e77..5e622c58ea1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2005-02-11 Nick Clifton + * 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 b2f83c45030..ec1864c68fa 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;