This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]