Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
This non-functional change keeps formatting consistent.

closes official-stockfish#4623

Bench 2370027
  • Loading branch information
cj5716 authored and vondele committed Jun 16, 2023
1 parent 32d3284 commit 0187546
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,9 +1463,7 @@ namespace {

// Step 4. Static evaluation of the position
if (ss->inCheck)
{
bestValue = futilityBase = -VALUE_INFINITE;
}
else
{
if (ss->ttHit)
Expand All @@ -1480,11 +1478,9 @@ namespace {
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)
Expand Down

0 comments on commit 0187546

Please sign in to comment.