Re: [PATCH 3/4] sys/reboot: boolize C_A_D

From: Joe Perches
Date: Sun Jun 02 2013 - 21:10:08 EST


On Fri, 2013-05-31 at 16:02 -0700, Andrew Morton wrote:
> there's no rule
> which states that sizeof(bool) must equal sizeof(int).

For gcc, sizeof(_Bool) isn't sizeof(int) so it would
work for one endian but not the other.

gcc has sizeof(_Bool) == sizeof(unsigned char)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/