Skip to content

Commit

Permalink
Remove Extraneous Parenthesis
Browse files Browse the repository at this point in the history
No longer needed after
#5667.

closes #5717

No functional change
  • Loading branch information
xu-shawn authored and Disservin committed Dec 22, 2024
1 parent 1776448 commit e770b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ 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);
return qsearch < PvNode ? PV : NonPV > (pos, ss, alpha, beta);

// Limit the depth if extensions made it too large
depth = std::min(depth, MAX_PLY - 1);
Expand Down Expand Up @@ -1714,7 +1714,7 @@ Value Search::Worker::qsearch(Position& pos, Stack* ss, Value alpha, Value beta)

Depth Search::Worker::reduction(bool i, Depth d, int mn, int delta) const {
int reductionScale = reductions[d] * reductions[mn];
return (reductionScale + 1304 - delta * 814 / rootDelta) + (!i && reductionScale > 1423) * 1135;
return reductionScale - delta * 814 / rootDelta + (!i && reductionScale > 1423) * 1135 + 1304;
}

// elapsed() returns the time elapsed since the search started. If the
Expand Down

0 comments on commit e770b55

Please sign in to comment.