Skip to content

Commit

Permalink
Fix usage of abs vs std::abs
Browse files Browse the repository at this point in the history
no functional change
  • Loading branch information
xu-shawn authored May 9, 2024
1 parent c43425b commit 065b87b
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 @@ -1284,7 +1284,7 @@ Value Search::Worker::search(
else
{
// Reduce other moves if we have found at least one score improvement (~2 Elo)
if (depth > 2 && depth < 13 && abs(value) < VALUE_TB_WIN_IN_MAX_PLY)
if (depth > 2 && depth < 13 && std::abs(value) < VALUE_TB_WIN_IN_MAX_PLY)
depth -= 2;

assert(depth > 0);
Expand Down

0 comments on commit 065b87b

Please sign in to comment.