Re: [cc65] wrong warning?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-01-01 19:33:46
Hi!

On Sun, Jan 01, 2012 at 04:44:32PM +0100, Johan Kotlinski wrote:
> test.c(3): Warning: Condition is never true
>
> ----
>
> ...shouldn't condition _always_ be true in this case?

Thanks! It was a bug caused by not checking for signedness of the datatype but
for "not unsignedness" instead. Which is true for more cases than just for
signed datatypes.

I've fixed the problem. As a side effect, there will be no warning, because
cc65 is not smart enough to see the contents of a. The advantage is that the
generated code is now ok:-) The change should be in tomorrows snapshot.

Thanks again for the report!

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jan 1 19:33:54 2012

This archive was generated by hypermail 2.1.8 : 2012-01-01 19:33:57 CET