From 4bc2a24245faa8ea8b3b8a80d03bd7436ac154a2 Mon Sep 17 00:00:00 2001 From: Disservin Date: Wed, 18 Dec 2024 19:47:56 +0100 Subject: [PATCH] Workaround for clang-format bug closes https://github.com/official-stockfish/Stockfish/pull/5728 No functional change --- src/search.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index f184a353..1f19c74d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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(pos, ss, alpha, beta); + } // Limit the depth if extensions made it too large depth = std::min(depth, MAX_PLY - 1);