bit-shift mistake