Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/ub.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>::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<int>::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}
Expand Down
Loading