fix typo
authorRalf Jung <post@ralfj.de>
Mon, 15 Jul 2019 11:39:39 +0000 (13:39 +0200)
committerRalf Jung <post@ralfj.de>
Mon, 15 Jul 2019 11:39:39 +0000 (13:39 +0200)
ralf/_posts/2019-07-14-uninit.md

index 314ca958e3e91a0522e0279ae798172c9242ac82..c6ee054c28086e3c4578420fb5d33b331d88cdb3 100644 (file)
@@ -65,7 +65,7 @@ Compilers don't just want to annoy programmers.
 Ruling out operations such as comparison on uninitialized data is useful, because it means the compiler does not have to "remember" which exact bit pattern an uninitialized variable has!
 A well-behaved (UB-free) program cannot observe that bit pattern anyway.
 So each time an uninitialized variable gets used, we can just use *any* machine register---and for different uses, those can be different registers!
-So, one time we "look" at `x` it can be at least 150, and then when we look at it again it is less than 120, even though `x` did not change.
+So, one time we "look" at `x` it can be at least 150, and then when we look at it again it is at most 120, even though `x` did not change.
 `x` was just uninitialized all the time.
 That explains why our compiled example program behaves the way it does.