Skip to content

Commit

Permalink
Merge pull request #1049 from Smittyvb/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor authored Jun 18, 2021
2 parents 105a943 + da0ec46 commit fa24915
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/expressions/operator-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The following things are considered to be overflow:
* When `+`, `*` or `-` create a value greater than the maximum value, or less than the minimum value that can be stored.
This includes unary `-` on the smallest value of any signed integer type.
* Using `/` or `%`, where the left-hand argument is the smallest integer of a signed integer type and the right-hand argument is `-1`.
These checks occur even when `-C overflow-checks` is disabled, for legacy reasons.
* 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.

## Borrow operators
Expand Down

0 comments on commit fa24915

Please sign in to comment.