From 7ccde25baf03e77926644b282fed68ba0b5ddf95 Mon Sep 17 00:00:00 2001 From: Disservin Date: Sun, 11 Feb 2024 20:13:19 +0100 Subject: [PATCH] Format code using clang-format No functional change --- src/search.cpp | 4 ++-- src/thread.cpp | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index b36eb05d..7bae7a4a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1289,8 +1289,8 @@ moves_loop: // When in check, search starts here assert(moveCount || !ss->inCheck || excludedMove || !MoveList(pos).size()); // Adjust best value for fail high cases at non-pv nodes - if (!PvNode && bestValue >= beta && std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY && - std::abs(beta) < VALUE_TB_WIN_IN_MAX_PLY && std::abs(alpha) < VALUE_TB_WIN_IN_MAX_PLY) + if (!PvNode && bestValue >= beta && std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY + && std::abs(beta) < VALUE_TB_WIN_IN_MAX_PLY && std::abs(alpha) < VALUE_TB_WIN_IN_MAX_PLY) bestValue = (bestValue * (depth + 2) + beta) / (depth + 3); if (!moveCount) diff --git a/src/thread.cpp b/src/thread.cpp index 2e42abd4..61beb399 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -212,7 +212,9 @@ Thread* ThreadPool::get_best_thread() const { Thread* bestThread = threads.front(); Value minScore = VALUE_NONE; - std::unordered_map votes(2 * std::min(size(), bestThread->worker->rootMoves.size())); + + std::unordered_map votes( + 2 * std::min(size(), bestThread->worker->rootMoves.size())); // Find the minimum score of all threads for (Thread* th : threads)