Hello, * On Fri, Oct 23, 2009 at 10:12:47AM +0200 Groepaz wrote: > On Freitag 23 Oktober 2009, Karri Kaksonen wrote: > > 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. to add a little bit: type X = signed type unsigned X = unsigned is true for almost every scalar type X. "char" is the only exception to this. Thus, you should think as if there are three types: 1. char, 2. signed char, and 3. unsigned char. Of course, the first will be one of the other two, but you do not know in advance which of them. Regards, Spiro. -- Spiro R. Trikaliotis http://opencbm.sf.net/ http://www.trikaliotis.net/ http://www.viceteam.org/ ---------------------------------------------------------------------- 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:45:57 2009
This archive was generated by hypermail 2.1.8 : 2009-10-23 10:46:00 CEST