IntShift: fix incorrect conditions