Bug?

Tommi Kiviniemi tomkiv-9@student.ltu.se
Wed Jul 14 09:27:00 GMT 2004


Sorry about this one, apparently bitwise and has lower predecence
than ==. i was absolutely certain this wasn't the case. my bad!

Tommi

On Wed, 14 Jul 2004 11:23:23 +0200, Tommi Kiviniemi 
<tomkiv-9@student.ltu.se> wrote:

>
> Ok, I don't have the time to register and all so this is what I found 
> out:
>
> i have an import filter for TARGA images which is 80kb source, and 
> translates to an 11kb
> object file. now, i got complaints for "if (header.imagedescriptor & 0xF 
> == 1) {" which is
> used about.. 40 times? ok, i changed those to "if 
> ((header.imagedescriptor & 0xF) == 1) {"
> to get rid of the compiler warnings (notice the extra parantheses). now 
> the object file is
> 20kb!! what is going on, as this is hardly the behaviour i was expecting?
> i can mail you the source if the need arises. the compiler options were 
> heaviest
> optimizations and wall. v3.3.3.
>
> Sincerely,
> Tommi Kiviniemi




More information about the Gcc-bugs mailing list