Closed sguera closed 7 years ago
(double ) (repeat * ((M - 3) * (N - 3)))
may cause integer overflow before converting to double.
Do separate cast to double for each integer before multiplication.
fixed in https://github.com/RRZE-HPC/stempel/commit/77fd77e487beb6a04be4fa84a4a54cca92deb5f4
(double ) (repeat * ((M - 3) * (N - 3)))
may cause integer overflow before converting to double.
Do separate cast to double for each integer before multiplication.