Skip to content

Commit

Permalink
Fix usage of abs vs std::abs
Browse files Browse the repository at this point in the history
close official-stockfish#5143

No functional change
  • Loading branch information
vondele committed Mar 29, 2024
1 parent e13e4cf commit 68d58d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ Value Search::Worker::search(
// Futility pruning: parent node (~13 Elo)
if (!ss->inCheck && lmrDepth < 15 && futilityValue <= alpha)
{
if (bestValue <= futilityValue && abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY
if (bestValue <= futilityValue && std::abs(bestValue) < VALUE_TB_WIN_IN_MAX_PLY
&& futilityValue < VALUE_TB_WIN_IN_MAX_PLY)
bestValue = (bestValue + futilityValue * 3) / 4;
continue;
Expand Down

0 comments on commit 68d58d9

Please sign in to comment.