Skip to content

Commit 2d2b4c4

Browse files
RexJaeschkenikic
authored andcommitted
V7 Revise behavior for a negative bit-shift count
1 parent 4ea9a2e commit 2d2b4c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/10-expressions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,8 +2190,7 @@ Right shifts where the shift count is greater than the bit width of the integer
21902190
type (e.g. 32 or 64) must always result in 0 when `e1` is positive and -1 when
21912191
`e1` is negative, even if there is no native processor support for this.
21922192

2193-
If the shift count is negative, this results in a diagnostic followed by a
2194-
`bool` result having value `FALSE`.
2193+
If the shift count is negative, an exception of type `ArithmeticError` is thrown.
21952194

21962195
These operators associate left-to-right.
21972196

0 commit comments

Comments
 (0)