readability-implicit-bool-conversion 1/2
[alexxy/gromacs.git] / src / gromacs / gmxana / gmx_msd.cpp
index 9a13ea723815fe54e4a9a5fe87da2dc075907f1a..3d4e240a2f77977eac6bdcc73f60310f9ee51faf 100644 (file)
@@ -917,7 +917,7 @@ static void do_corr(const char *trx_file, const char *ndx_file, const char *msd_
                     beginfit, endfit);
 
     nat_trx =
-        corr_loop(msd, trx_file, top, ePBC, mol_file ? gnx[0] : false, gnx, index,
+        corr_loop(msd, trx_file, top, ePBC, mol_file ? gnx[0] != 0 : false, gnx, index,
                   (mol_file != nullptr) ? calc1_mol : (bMW ? calc1_mw : calc1_norm),
                   bTen, gnx_com, index_com, dt, t_pdb,
                   pdb_file ? &x : nullptr, box, oenv);