P
Philipp Klaus Krause
Verse 1407: "A bit-field is interpreted as a signed or unsigned integer
type consisting of the specified number of bits."
Does this mean that when assigning a value to a _Bool bitfield of width
1 it is casted as when assigning to an unsigned int bitfield of width 1,
e.g. 2 is converted to 0 (instead of to 1 as when assinging to an
ordinary, non-bitfield _Bool)? If so what's the advantage of having
_Bool bitfields over unsigned int bitfields?
Philipp
type consisting of the specified number of bits."
Does this mean that when assigning a value to a _Bool bitfield of width
1 it is casted as when assigning to an unsigned int bitfield of width 1,
e.g. 2 is converted to 0 (instead of to 1 as when assinging to an
ordinary, non-bitfield _Bool)? If so what's the advantage of having
_Bool bitfields over unsigned int bitfields?
Philipp