apply cast to first variable in sequence of multiplications

This commit is contained in:
Axel Kohlmeyer
2021-02-07 21:18:54 -05:00
parent 06e484d3e0
commit 9cdacbdebd

View File

@ -565,7 +565,7 @@ void integrate_potential::atimes(const std::vector<cvm::real> &A, std::vector<cv
}
// Edges along x (x components only)
index = 0L; // Follows left slab
index2 = d * h * static_cast<size_t>(w - 1); // Follows right slab
index2 = static_cast<size_t>(d) * h * (w - 1); // Follows right slab
if (periodic[0]) {
xm = d * h * (w - 1);
xp = d * h;