On April 27, 2015 10:29:25 AM CEST, "Roberto E. Vargas Caballero" <[email protected]> wrote: >> typedef struct { >> uint_least32_t u; >> uint_least32_t mode:12; >> uint_least32_t fg:10; >> uint_least32_t bg:10; >> } Glyph; > >The size of this struct is only one byte less than if the >same of the struct using shorts. You can test it if you >want. > >Regards,
Add to that, non-int bit fields are a GNU extension.
