Would `return mismatch | -mismatch` suffice here to leave 0 alone and convert any bit set to 0xff?