mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
As agreed in #255, commits squashed (ES.100)
As agreed in #255, two commits squashed. (ES.100: Don't mix signed and unsigned arithmetic)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user