Fix UB at left shifts of negative integers