Fix part of old-style casting
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_awh.cpp
index 9b0f14d39752b293f442c4d6d3c3e158ee58e70f..3751698121dca083431a08aaf21a36671dee5ab0 100644 (file)
@@ -430,7 +430,7 @@ AwhReader::AwhReader(const AwhParams  *awhParams,
     {
         AwhBiasParams              *awhBiasParams = &awhParams->awhBiasParams[k];
 
-        int                         numSubBlocks  = (int)block->sub[subblockStart].fval[0];
+        int                         numSubBlocks  = static_cast<int>(block->sub[subblockStart].fval[0]);
 
         std::unique_ptr<OutputFile> awhOutputFile(new OutputFile(opt2fn("-o", numFileOptions, filenames), "AWH", awhParams->numBias, k));