From 409f6319695c85306aa469ca1935200c312ef262 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 --- src/search.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index e352c96e33e..c797b841b5c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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(pos, ss, alpha, beta); + } // Limit the depth if extensions made it too large depth = std::min(depth, MAX_PLY - 1);