Use stdbool.h
, as it is more standard and C99's _Bool
type defines is recognised by C compilers as a type that contains only 0 or 1, therefore it can be safely assigned to a bit-field in a structure even with -Wconversion
on.
Use stdbool.h
, as it is more standard and C99's _Bool
type defines is recognised by C compilers as a type that contains only 0 or 1, therefore it can be safely assigned to a bit-field in a structure even with -Wconversion
on.