Skip to content

Commit fa24915

Browse files
authored
Merge pull request #1049 from Smittyvb/patch-2
2 parents 105a943 + da0ec46 commit fa24915

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/expressions/operator-expr.md

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The following things are considered to be overflow:
2525
* When `+`, `*` or `-` create a value greater than the maximum value, or less than the minimum value that can be stored.
2626
This includes unary `-` on the smallest value of any signed integer type.
2727
* Using `/` or `%`, where the left-hand argument is the smallest integer of a signed integer type and the right-hand argument is `-1`.
28+
These checks occur even when `-C overflow-checks` is disabled, for legacy reasons.
2829
* Using `<<` or `>>` where the right-hand argument is greater than or equal to the number of bits in the type of the left-hand argument, or is negative.
2930

3031
## Borrow operators

0 commit comments

Comments
 (0)