Fix part of old-style casting
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_msd.cpp
index 6818ac285589168ab1f1c93aaeb13c95d9507512..9f23157d2fed8ee14aefddc64f52d0cd7c453ef1 100644 (file)
@@ -117,7 +117,7 @@ static t_corr *init_corr(int nrgrp, int type, int axis, real dim_factor,
     int      i;
 
     snew(curr, 1);
-    curr->type       = (msd_type)type;
+    curr->type       = static_cast<msd_type>(type);
     curr->axis       = axis;
     curr->ngrp       = nrgrp;
     curr->nrestart   = 0;