explicitly use unsigned values in ByteReverse()