From 5dd049c3a22dd1618f990fdda017ffd9ef2a5039 Mon Sep 17 00:00:00 2001 From: Antti H S Laaksonen Date: Sun, 19 Nov 2017 23:12:57 +0200 Subject: [PATCH] Fix unsigned upper bound [closes #56] --- chapter10.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter10.tex b/chapter10.tex index 9c649c9..afa4516 100644 --- a/chapter10.tex +++ b/chapter10.tex @@ -77,7 +77,7 @@ of the bit representation, the number will overflow. In a signed representation, the next number after $2^{n-1}-1$ is $-2^{n-1}$, and in an unsigned representation, -the next number after $2^{n-1}$ is $0$. +the next number after $2^n-1$ is $0$. For example, consider the following code: \begin{lstlisting} int x = 2147483647