Skip to content

Commit 3a1233e

Browse files
authored
[ub:expr.expr.eval] Add \tcode for int (#9271)
1 parent b9c912a commit 3a1233e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/ub.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,9 @@
575575
int main() {
576576
// Assuming $32$-bit \tcode{int}, the range of values is: $-2,147,483,648$ to $2,147,483,647$.
577577
int x1 = std::numeric_limits<int>::max() + 1;
578-
// undefined behavior, $2,147,483,647 + 1$ is not representable as an int
578+
// undefined behavior, $2,147,483,647 + 1$ is not representable as an \tcode{int}
579579
int x2 = std::numeric_limits<int>::min() / -1;
580-
// undefined behavior, $-2,147,483,648 / -1$ is not representable as an int
580+
// undefined behavior, $-2,147,483,648 / -1$ is not representable as an \tcode{int}
581581
}
582582
\end{codeblock}
583583
\end{example}

0 commit comments

Comments
 (0)