Re: [cc65] another bug?

From: Groepaz <groepaz1gmx.net>
Date: 2009-10-23 10:12:47
On Freitag 23 Oktober 2009, Karri Kaksonen wrote:

> Oh no. I am afraid that you mean that "char is unsigned" by default.

ooops. yes :)

> Actually this is very confusing for me now. I always thought that
>
> int  = signed
> unsigned int = unsigned
>
> char = signed
> unsigned char = unsigned

no, wether char is signed or unsigned is implementation defined, you can not 
rely on this ever.

> Anyway all my code is written this way. I obviously need to add
> --signed-chars to all my Makefiles.

if you dont want to fix the code, yes :)

-- 

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

Two Dyslexics walk into a bra.

----------------------------------------------------------------------
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 10:12:20 2009

This archive was generated by hypermail 2.1.8 : 2009-10-23 10:12:22 CEST