Fix inverted usage of endian conversion macros.