Add parentheses to remove ambiguity for %. (#2478)

This commit is contained in:
Jon Ross-Perkins
2022-12-20 17:51:05 -08:00
committed by GitHub
parent cc9ea4da66
commit c5f4e65fdd
+1 -1
View File
@@ -128,7 +128,7 @@ Signed integer arithmetic produces the usual mathematical result. Unsigned
integer arithmetic in `uN` wraps around modulo 2<sup>`N`</sup>.
Division truncates towards zero. The result of the `%` operator is defined by
the equation `a % b == a - a / b * b`.
the equation `a % b == a - (a / b) * b`.
#### Overflow and other error conditions