Fixed errors caused by using an uninitialized union member to calculate endian values.