In the "Basic Operations" section, the description of the >> operator says that it is "Logical, not arithmetic". This is only true if the shifted operand is unsigned. For signed operands the result is an arithmetic shift which preserves the sign of the input.
In the "Basic Operations" section, the description of the >> operator says that it is "Logical, not arithmetic". This is only true if the shifted operand is unsigned. For signed operands the result is an arithmetic shift which preserves the sign of the input.