Fix part of old-style casting
[alexxy/gromacs.git] / src / gromacs / listed-forces / listed-forces.cpp
index 33ee488b6ca2dfb4207c88172e8e607672826928..23dbbd1d41ca33b4cc01d3f90aeba1592ef2f16c 100644 (file)
@@ -367,7 +367,7 @@ calc_one_bond(int thread,
             /* No energies, shift forces, dvdl */
             rbdihs_noener_simd(nbn, idef->il[ftype].iatoms+nb0,
                                idef->iparams,
-                               (const rvec*)x, f,
+                               static_cast<const rvec*>(x), f,
                                pbc, g, lambda[efptFTYPE], md, fcd,
                                global_atom_index);
             v = 0;