]> git.sesse.net Git - stockfish/blobdiff - src/timeman.cpp
Use prefix operators wherever possible
[stockfish] / src / timeman.cpp
index 62b7eb11432563d4f0f8471dfc904d772c68fd78..34dbcc6eb13598b0fdf57d4e37f6bdd7dba6c29b 100644 (file)
@@ -114,7 +114,7 @@ void TimeManager::init(const Search::LimitsType& limits, int currentPly, Color u
 
   // We calculate optimum time usage for different hypothetic "moves to go"-values and choose the
   // minimum of calculated search time values. Usually the greatest hypMTG gives the minimum values.
-  for (hypMTG = 1; hypMTG <= (limits.movestogo ? std::min(limits.movestogo, MoveHorizon) : MoveHorizon); hypMTG++)
+  for (hypMTG = 1; hypMTG <= (limits.movestogo ? std::min(limits.movestogo, MoveHorizon) : MoveHorizon); ++hypMTG)
   {
       // Calculate thinking time for hypothetic "moves to go"-value
       hypMyTime =  limits.time[us]