Did you read the replies you were given? They answer your question.

If you're not interested in reading what people tell you about unions, then perhaps you shouldn't bother with unions. Change the union to struct and the "weirdness" will vanish.