diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 751afd3..e9a39cd 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -8482,7 +8482,7 @@ Incrementing a value beyond a maximum value can lead to memory corruption and un int area(int h, int w) { return h*w; } - auto a = area(10'000'000*100'000'000); // bad + auto a = area(10'000'000, 100'000'000); // bad **Exception**: Use unsigned types if you really want modulo arithmetic.