Skip to content

Commit 7ccde25

Browse files
committed
Format code using clang-format
No functional change
1 parent c115e51 commit 7ccde25

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/search.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,8 @@ Value Search::Worker::search(
12891289
assert(moveCount || !ss->inCheck || excludedMove || !MoveList<LEGAL>(pos).size());
12901290

12911291
// Adjust best value for fail high cases at non-pv nodes
1292-
if (!PvNode && bestValue >= beta && std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY &&
1293-
std::abs(beta) < VALUE_TB_WIN_IN_MAX_PLY && std::abs(alpha) < VALUE_TB_WIN_IN_MAX_PLY)
1292+
if (!PvNode && bestValue >= beta && std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY
1293+
&& std::abs(beta) < VALUE_TB_WIN_IN_MAX_PLY && std::abs(alpha) < VALUE_TB_WIN_IN_MAX_PLY)
12941294
bestValue = (bestValue * (depth + 2) + beta) / (depth + 3);
12951295

12961296
if (!moveCount)

src/thread.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ Thread* ThreadPool::get_best_thread() const {
212212

213213
Thread* bestThread = threads.front();
214214
Value minScore = VALUE_NONE;
215-
std::unordered_map<Move, int64_t, Move::MoveHash> votes(2 * std::min(size(), bestThread->worker->rootMoves.size()));
215+
216+
std::unordered_map<Move, int64_t, Move::MoveHash> votes(
217+
2 * std::min(size(), bestThread->worker->rootMoves.size()));
216218

217219
// Find the minimum score of all threads
218220
for (Thread* th : threads)

0 commit comments

Comments
 (0)