Fix compile time warning in bfd/libbfd.c

Nick Clifton nickc@redhat.com
Fri Feb 11 17:12:00 GMT 2005


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;
  



More information about the Binutils mailing list