Unexpected results with bit shift

I am afraid I don't know how to do that :-[