Fix part of old-style casting
[alexxy/gromacs.git] / src / gromacs / mdrun / md.cpp
index a96a616a792d848f20b37ef500a2959672502670..f7ebf89795f85ca4067b0183f7690cfa0b7b190c 100644 (file)
@@ -1344,7 +1344,7 @@ void gmx::Integrator::do_md()
         elapsed_time = walltime_accounting_get_current_elapsed_time(walltime_accounting);
 
         /* Check whether everything is still allright */
-        if (((int)gmx_get_stop_condition() > handled_stop_condition)
+        if ((static_cast<int>(gmx_get_stop_condition()) > handled_stop_condition)
 #if GMX_THREAD_MPI
             && MASTER(cr)
 #endif
@@ -1385,7 +1385,7 @@ void gmx::Integrator::do_md()
                     "\n\nReceived the %s signal, stopping within %d steps\n\n",
                     gmx_get_signal_name(), nsteps_stop);
             fflush(stderr);
-            handled_stop_condition = (int)gmx_get_stop_condition();
+            handled_stop_condition = static_cast<int>(gmx_get_stop_condition());
         }
         else if (MASTER(cr) && (bNS || ir->nstlist <= 0) &&
                  (max_hours > 0 && elapsed_time > max_hours*60.0*60.0*0.99) &&