Re: [cc65] another bug?

From: Groepaz <groepaz1gmx.net>
Date: 2009-10-23 09:23:41
On Freitag 23 Oktober 2009, Johan Kotlinski wrote:
> #include <assert.h>
> void main() {
>     char bar = -1;
>     assert(bar < 0);
> }
>
> ...warns "test.c(4): Warning: Condition is never true" and fails assert.
>
> cc65 V2.13.0, SVN version: 4384

not a bug. char is signed by default with cc65. use either --signed-chars (i 
think) or explicitly declare the char as signed.

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

Insisting on perfect safety is for people who don't have the balls to live in 
the real world. 
<Mary Shafer>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Oct 23 09:23:14 2009

This archive was generated by hypermail 2.1.8 : 2009-10-23 09:23:16 CEST