]> git.sesse.net Git - stockfish/commitdiff
Small cleanup
authorcj5716 <125858804+cj5716@users.noreply.github.com>
Thu, 15 Jun 2023 13:05:01 +0000 (21:05 +0800)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Fri, 16 Jun 2023 17:14:58 +0000 (19:14 +0200)
This non-functional change keeps formatting consistent.

closes https://github.com/official-stockfish/Stockfish/pull/4623

Bench 2370027

src/search.cpp

index 5de950eb147dc2d5a64080055b097b1a3eeb60f8..8ace674d11a2f7a8845f68aa075fe01ec28921c3 100644 (file)
@@ -1463,9 +1463,7 @@ moves_loop: // When in check, search starts here
 
     // Step 4. Static evaluation of the position
     if (ss->inCheck)
-    {
         bestValue = futilityBase = -VALUE_INFINITE;
-    }
     else
     {
         if (ss->ttHit)
@@ -1480,11 +1478,9 @@ moves_loop: // When in check, search starts here
                 bestValue = ttValue;
         }
         else
-        {
             // In case of null move search use previous static eval with a different sign
             ss->staticEval = bestValue = (ss-1)->currentMove != MOVE_NULL ? evaluate(pos)
                                                                           : -(ss-1)->staticEval;
-        }
 
         // Stand pat. Return immediately if static value is at least beta
         if (bestValue >= beta)