64 bit linux on Intel T9600

D. Hugh Redelmeier hugh-pmF8o41NoarQT0dZR+AlfA at public.gmane.org
Wed Jun 24 15:34:05 UTC 2009


| From: Lennart Sorensen <lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org>

| > Quiz: does char promote to int or unsigned int?
| 
| I would guess it promotes to whichever matches the system's signed'ness
| of char.  So unsigned on arm, signed on i386 (on linux that is).
| No idea though.

On machines where sizeof(int) > sizeof(char), in other words, the vast
majority, char (and its variants) promote to int.  If char is unsigned
and sizeof(int == sizeof(char), which is allowed, char promotes to
unsigned int.  Ditto for short, BTW.
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list