Closed mdindoffer closed 2 years ago
As the title says. Multiplying two ints before widening to long can lead to overflow. The widening needs to be explicitly done before the multiplication.
See individual commits and messages for details. Some unit tests present for illustration.
Thanks!
As the title says. Multiplying two ints before widening to long can lead to overflow. The widening needs to be explicitly done before the multiplication.
See individual commits and messages for details. Some unit tests present for illustration.