mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-25 03:26:24 +08: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:
committed by
Joost VandeVondele
parent
c43425b0b1
commit
b8812138e8
@@ -1284,7 +1284,7 @@ moves_loop: // When in check, search starts here
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user