fix endian neutral helper macro to return an integer type