[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Frozen
From: |
Lennart Sorensen |
Subject: |
Re: Frozen |
Date: |
Thu, 1 Mar 2012 14:25:29 -0500 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
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
- Re: Frozen, Lennart Sorensen, 2012/03/01
- Re: Frozen, Lennart Sorensen, 2012/03/01
- Re: Frozen,
Lennart Sorensen <=
- Re: Frozen, Vladimir 'φ-coder/phcoder' Serbinenko, 2012/03/04