Workaround for clang-format bug

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

No functional change
This commit is contained in:
Disservin
2024-12-18 19:47:56 +01:00
parent e7e78aa09e
commit 4bc2a24245
+4 -1
View File
@@ -536,7 +536,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);