modify some short to u16,some char to u8 according to these vars related
to their bits