From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31060 invoked by alias); 11 Feb 2005 15:59:27 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 31037 invoked from network); 11 Feb 2005 15:59:25 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 11 Feb 2005 15:59:25 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1BFxO9R020161 for ; Fri, 11 Feb 2005 10:59:24 -0500 Received: from pobox.surrey.redhat.com (pobox.surrey.redhat.com [172.16.10.17]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1BFxOO20244 for ; Fri, 11 Feb 2005 10:59:24 -0500 Received: from localhost.localdomain.redhat.com (vpnuser9.surrey.redhat.com [172.16.9.9]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id j1BFxNMR031712 for ; Fri, 11 Feb 2005 15:59:23 GMT To: binutils@sources.redhat.com Subject: Fix compile time warning in bfd/libbfd.c From: Nick Clifton Date: Fri, 11 Feb 2005 17:12:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-02/txt/msg00246.txt.bz2 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 * 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;