From 62a43306b06996a0808afe4348e0d63b41e60d7e Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Wed, 13 Jul 2022 12:54:12 +0100 Subject: [PATCH] Typo correction --- _posts/2021-12-30-usual_arithmetic_confusions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2021-12-30-usual_arithmetic_confusions.md b/_posts/2021-12-30-usual_arithmetic_confusions.md index 043a245..a08741a 100644 --- a/_posts/2021-12-30-usual_arithmetic_confusions.md +++ b/_posts/2021-12-30-usual_arithmetic_confusions.md @@ -19,7 +19,7 @@ around what the type of an integer literal will be in various cases e.g. // https://cppinsights.io/s/0ffee264 void f() { auto x1 = 1; // Integer literal 1 will have type int - auto x2 = 1U; // Integer literal 1L will have type unsigned int + auto x2 = 1U; // Integer literal 1U will have type unsigned int auto x3 = 1L; // Integer literal 1L will have type long int auto x4 = 1UL; // Integer literal 1UL will have type unsigned long int }