mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Fix usage of abs vs std::abs
closes https://github.com/official-stockfish/Stockfish/pull/5229 no functional change
This commit is contained in:
parent
c43425b0b1
commit
b8812138e8
1 changed files with 1 additions and 1 deletions
|
@ -1284,7 +1284,7 @@ moves_loop: // When in check, search starts here
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Reduce other moves if we have found at least one score improvement (~2 Elo)
|
// 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;
|
depth -= 2;
|
||||||
|
|
||||||
assert(depth > 0);
|
assert(depth > 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue