You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/expressions/operator-expr.md
+1
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ The following things are considered to be overflow:
25
25
* When `+`, `*` or `-` create a value greater than the maximum value, or less than the minimum value that can be stored.
26
26
This includes unary `-` on the smallest value of any signed integer type.
27
27
* 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.
28
29
* 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.
0 commit comments