Received: from list by lists.gnu.org with archive (Exim 4.71) id 1S3BdF-0006JO-V9 for mharc-grub-devel@gnu.org; Thu, 01 Mar 2012 14:25:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3Bd9-0006Ip-T3 for grub-devel@gnu.org; Thu, 01 Mar 2012 14:25:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3Bd5-00026W-Dz for grub-devel@gnu.org; Thu, 01 Mar 2012 14:25:35 -0500 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:49200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3Bd5-00026N-9x for grub-devel@gnu.org; Thu, 01 Mar 2012 14:25:31 -0500 Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id A3AF8EF2; Thu, 1 Mar 2012 14:25:29 -0500 (EST) Date: Thu, 1 Mar 2012 14:25:29 -0500 To: The development of GNU GRUB Subject: Re: Frozen Message-ID: <20120301192529.GD22241@caffeine.csclub.uwaterloo.ca> References: <4F4C4CE8.6010001@gmail.com> <20120228163932.GO13612@caffeine.csclub.uwaterloo.ca> <20120301183710.GB22241@caffeine.csclub.uwaterloo.ca> <20120301191517.GC22241@caffeine.csclub.uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120301191517.GC22241@caffeine.csclub.uwaterloo.ca> User-Agent: Mutt/1.5.20 (2009-06-14) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 129.97.134.17 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2012 19:25:40 -0000 On Thu, Mar 01, 2012 at 02:15:17PM -0500, Lennart Sorensen wrote: > Would using this instead work: > > for (i = k - 1; i >= 0 && (unsigned) i > line_start - 1; > > After all if i already had to be >=0 then casting it to unsigned has no > harm, whereas casting line_start to signed could potentially generate > a very negative number if line_start was very big. > > The compiler approves. After changing that, the current bzr tree (revno: 4083) builds with no errors on powerpc using gcc (Debian 4.4.5-8) 4.4.5 from Debian Squeeze. -- Len Sorensen