Re: Could someone tell me what is wrong here?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 19, 2011 at 1:54 PM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
> On 19 January 2011 21:22, Brian Budge wrote:
>> I haven't done an in-depth analysis of your code, but I noticed that
>> in my own code, that casting a bool to an integer type did not always
>> yield 0 or 1 (I believe this was new in 4.5x).  I ended up changing
>> from
>>  += (uint32_t)mybool
>> to
>>  += mybool ? 1 : 0
>>
>> Does this help in your code?
>
> That would be a (fairly serious IMHO) bug, if you can reproduce it
> please report it to bugzilla.
>

I'll see if I can work up a minimal repro.

  Brian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux