mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 05:07:46 +00:00
Workaround for clang-format bug
closes https://github.com/official-stockfish/Stockfish/pull/5728 No functional change
This commit is contained in:
+4
-1
@@ -536,7 +536,10 @@ Value Search::Worker::search(
|
|||||||
|
|
||||||
// Dive into quiescence search when the depth reaches zero
|
// Dive into quiescence search when the depth reaches zero
|
||||||
if (depth <= 0)
|
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
|
// Limit the depth if extensions made it too large
|
||||||
depth = std::min(depth, MAX_PLY - 1);
|
depth = std::min(depth, MAX_PLY - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user