This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix compile time warning in bfd/libbfd.c
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 11 Feb 2005 16:09:36 +0000
- Subject: Fix compile time warning in bfd/libbfd.c
Hi Guys,
I am applying the patch below to fix a compile time warning building
libbfd.c.
Cheers
Nick
bfd/ChangeLog
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.
Index: bfd/libbfd.c
===================================================================
RCS file: /cvs/src/src/bfd/libbfd.c,v
retrieving revision 1.34
diff -c -3 -p -r1.34 libbfd.c
*** bfd/libbfd.c 17 Jan 2005 17:12:00 -0000 1.34
--- bfd/libbfd.c 11 Feb 2005 15:57:29 -0000
*************** read_signed_leb128 (bfd *abfd ATTRIBUTE_
*** 897,903 ****
unsigned int * bytes_read_ptr)
{
bfd_vma result;
! int shift;
int num_read;
unsigned char byte;
--- 897,903 ----
unsigned int * bytes_read_ptr)
{
bfd_vma result;
! unsigned shift;
int num_read;
unsigned char byte;