Skip to content

Commit

Permalink
Workaround for clang-format bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Disservin committed Dec 18, 2024
1 parent cf10644 commit 409f631
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,10 @@ Value Search::Worker::search(

// Dive into quiescence search when the depth reaches zero
if (depth <= 0)
return qsearch < PvNode ? PV : NonPV > (pos, ss, alpha, beta);
{
constexpr auto nt = PvNode ? PV : NonPV;
return qsearch<nt>(pos, ss, alpha, beta);
}

// Limit the depth if extensions made it too large
depth = std::min(depth, MAX_PLY - 1);
Expand Down

0 comments on commit 409f631

Please sign in to comment.