Re: [cc65] warnings int/char copying?

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2005-07-28 11:05:19
> > I can't say it's an error of the compiler, but it made me a bit
> > curious about what the philosophy is about warning for stuff like
> > this? When and when not...
> 
> is, that in C there are no real "char values" because characters are
> immediately promoted to integers. This is the reason, why
> 
>         sizeof ('a') == sizeof (int)

I could imagine exactly this was the case!

I will take a look at splint for heavier warnings...
http://lclint.cs.virginia.edu/

Cheers:)
Johan
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jul 28 11:05:27 2005

This archive was generated by hypermail 2.1.8 : 2005-07-28 11:05:29 CEST