From c4b3b8b0c6c58793cf209b491fd13fb08e7879cf Mon Sep 17 00:00:00 2001 From: Eliyahu Ravuna Date: Fri, 2 Oct 2015 16:02:20 +0300 Subject: [PATCH] As agreed in #255, commits squashed (ES.100) As agreed in #255, two commits squashed. (ES.100: Don't mix signed and unsigned arithmetic) --- CppCoreGuidelines.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index f65074b..82bcdbb 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8380,7 +8380,9 @@ This example has many more problems. ##### Example - ??? + unsigned x = 100; + unsigned y = 102; + cout << abs(x-y) << '\n'; //wrong result ##### Note