@@ -236,7 +236,7 @@ void Search::think() {
236236 }
237237
238238 // Reset the threads, still sleeping: will be wake up at split time
239- for (size_t i = 0 ; i < Threads.size (); i++ )
239+ for (size_t i = 0 ; i < Threads.size (); ++i )
240240 Threads[i]->maxPly = 0 ;
241241
242242 Threads.sleepWhileIdle = Options[" Idle Threads Sleep" ];
@@ -337,7 +337,7 @@ namespace {
337337
338338 // Save last iteration's scores before first PV line is searched and all
339339 // the move scores but the (new) PV are set to -VALUE_INFINITE.
340- for (size_t i = 0 ; i < RootMoves.size (); i++ )
340+ for (size_t i = 0 ; i < RootMoves.size (); ++i )
341341 RootMoves[i].prevScore = RootMoves[i].score ;
342342
343343 // MultiPV loop. We perform a full root search for each PV line
@@ -367,7 +367,7 @@ namespace {
367367
368368 // Write PV back to transposition table in case the relevant
369369 // entries have been overwritten during the search.
370- for (size_t i = 0 ; i <= PVIdx; i++ )
370+ for (size_t i = 0 ; i <= PVIdx; ++i )
371371 RootMoves[i].insert_pv_in_tt (pos);
372372
373373 // If search has been stopped return immediately. Sorting and
@@ -1102,7 +1102,7 @@ namespace {
11021102 // played non-capture moves.
11031103 Value bonus = Value (int (depth) * int (depth));
11041104 History.update (pos.piece_moved (bestMove), to_sq (bestMove), bonus);
1105- for (int i = 0 ; i < quietCount - 1 ; i++ )
1105+ for (int i = 0 ; i < quietCount - 1 ; ++i )
11061106 {
11071107 Move m = quietsSearched[i];
11081108 History.update (pos.piece_moved (m), to_sq (m), -bonus);
@@ -1456,7 +1456,7 @@ namespace {
14561456 // Choose best move. For each move score we add two terms both dependent on
14571457 // weakness, one deterministic and bigger for weaker moves, and one random,
14581458 // then we choose the move with the resulting highest score.
1459- for (size_t i = 0 ; i < PVSize; i++ )
1459+ for (size_t i = 0 ; i < PVSize; ++i )
14601460 {
14611461 int s = RootMoves[i].score ;
14621462
@@ -1489,11 +1489,11 @@ namespace {
14891489 size_t uciPVSize = std::min ((size_t )Options[" MultiPV" ], RootMoves.size ());
14901490 int selDepth = 0 ;
14911491
1492- for (size_t i = 0 ; i < Threads.size (); i++ )
1492+ for (size_t i = 0 ; i < Threads.size (); ++i )
14931493 if (Threads[i]->maxPly > selDepth)
14941494 selDepth = Threads[i]->maxPly ;
14951495
1496- for (size_t i = 0 ; i < uciPVSize; i++ )
1496+ for (size_t i = 0 ; i < uciPVSize; ++i )
14971497 {
14981498 bool updated = (i <= PVIdx);
14991499
@@ -1730,7 +1730,7 @@ void check_time() {
17301730
17311731 // Loop across all split points and sum accumulated SplitPoint nodes plus
17321732 // all the currently active positions nodes.
1733- for (size_t i = 0 ; i < Threads.size (); i++ )
1733+ for (size_t i = 0 ; i < Threads.size (); ++i )
17341734 for (int j = 0 ; j < Threads[i]->splitPointsSize ; j++)
17351735 {
17361736 SplitPoint& sp = Threads[i]->splitPoints [j];
0 commit comments