From 215a39b52206d51b398f85df2d048b9031ffb39e Mon Sep 17 00:00:00 2001 From: Andreas Krug <153394595+Andreas-Krug@users.noreply.github.com> Date: Sat, 29 Aug 2026 09:06:32 +0200 Subject: [PATCH] [ub:conv.double.out.of.range] Add \tcode for arithmetic types --- source/ub.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ub.tex b/source/ub.tex index 02daa55aed..8267694f37 100644 --- a/source/ub.tex +++ b/source/ub.tex @@ -682,7 +682,7 @@ #include int main() { - // Assuming 32-bit int, 32-bit float and 64-bit double. + // Assuming 32-bit \tcode{int}, 32-bit \tcode{float} and 64-bit \tcode{double}. double d2 = std::numeric_limits::max(); float f = d2; // undefined behavior on systems where the range of representable values // of \tcode{float} is \tcode{[-max,+max]}; on systems where the range of representable