From 9cdacbdebd033b9d8f40b38f62320afdfaa6c977 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 7 Feb 2021 21:18:54 -0500 Subject: [PATCH] apply cast to first variable in sequence of multiplications --- lib/colvars/colvargrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/colvars/colvargrid.cpp b/lib/colvars/colvargrid.cpp index 6cf2cdee45..df122b1be4 100644 --- a/lib/colvars/colvargrid.cpp +++ b/lib/colvars/colvargrid.cpp @@ -565,7 +565,7 @@ void integrate_potential::atimes(const std::vector &A, std::vector(w - 1); // Follows right slab + index2 = static_cast(d) * h * (w - 1); // Follows right slab if (periodic[0]) { xm = d * h * (w - 1); xp = d * h;