Re: [cc65] bug?

From: <silverdr1wfmh.org.pl>
Date: 2009-08-26 20:01:15
On 2009-08-26, at 19:22, Groepaz wrote:

>
> (someone asked here:
> http://www.lemon64.com/forum/viewtopic.php?p=382331#382331 )
>
>   if (VIC.ctrl1 & 0x80 == 0x0)  // test bit 7 of $d011
> [...]
>   if ((VIC.ctrl1 & 0x80) == 0x0)  // test bit 7 of $d011
>
> [...]
> then it would atleast be very nice to get a warning from the  
> compiler (gcc
> does it on similar ambiguous expressions)

But doesn't it come out of the evaluation priorities / order (not sure  
abut the English term) - part of the language definition. IMHO this  
first example is just plainly wrong, not ambiguous, isn't it? OTOH gcc  
possibly says something like "warning: ... is always false"? That I  
agree - can probably help in some almost obviously erroneous cases.

> (still on 2.12.9 ... may i suggest that the tools print their  
> revision/date or
> whatever is needed for you to identify what *exactly* i am using,  
> too? =))

I concur here - I think this is becoming important with the  
snapshots / cutting edge. I usually insert automatically the revision  
number into the version string

-- 
SD!
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Aug 26 20:01:31 2009

This archive was generated by hypermail 2.1.8 : 2009-08-26 20:01:33 CEST