changed the type of bit fields from int to char