fix swap type

this fixe, u16/s16, float and double endian types