I think it's much easier to read this as `& 0xFF`, rather than working out the arithmetic.