fix the type of bit field variable.

if 'int' type is 16bit integer, 'unsigned int flags: 21' is too large.