Fix divide by zero for 0 shifts.