fix the type of bit field variable.
if 'int' type is 16bit integer, 'unsigned int flags: 21' is too large.
Merge pull request #1026 from crimsonwoods/fix_bitfield_type

fix the type of bit field variable.