> 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,