From 74768e07bff9b54468d581f93227da7e36c41946 Mon Sep 17 00:00:00 2001 From: Andreas Krug <153394595+Andreas-Krug@users.noreply.github.com> Date: Tue, 25 Aug 2026 07:14:36 +0200 Subject: [PATCH] [ub:expr.expr.eval] Add \tcode for int --- source/ub.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ub.tex b/source/ub.tex index 8a339c44aa..02daa55aed 100644 --- a/source/ub.tex +++ b/source/ub.tex @@ -575,9 +575,9 @@ int main() { // Assuming $32$-bit \tcode{int}, the range of values is: $-2,147,483,648$ to $2,147,483,647$. int x1 = std::numeric_limits::max() + 1; - // undefined behavior, $2,147,483,647 + 1$ is not representable as an int + // undefined behavior, $2,147,483,647 + 1$ is not representable as an \tcode{int} int x2 = std::numeric_limits::min() / -1; - // undefined behavior, $-2,147,483,648 / -1$ is not representable as an int + // undefined behavior, $-2,147,483,648 / -1$ is not representable as an \tcode{int} } \end{codeblock} \end{example}