Merge remote-tracking branch 'upstream/main' into work

This commit is contained in:
Dave Bartolomeo
2020-10-19 15:19:03 -04:00
10 changed files with 258 additions and 3 deletions

View File

@@ -4,3 +4,5 @@ long j = i * i; //Wrong: due to overflow on the multiplication between ints,
long k = (long) i * i; //Correct: the multiplication is done on longs instead of ints,
//and will not overflow
long l = static_cast<long>(i) * i; //Correct: modern C++