Fix part of old-style casting
[alexxy/gromacs.git] / src / gromacs / correlationfunctions / autocorr.cpp
index 61dc522a28222d2b64019cc21b65958219c0664c..63560a924ae639de95fb8659cada326f7c78f3df 100644 (file)
@@ -525,7 +525,7 @@ static void do_four_core(unsigned long mode, int nframes,
     sfree(cfour);
     for (j = 0; (j < nframes); j++)
     {
-        c1[j] = csum[j]/(real)(nframes-j);
+        c1[j] = csum[j]/static_cast<real>(nframes-j);
     }
 }