mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Fix usage of abs vs std::abs
close https://github.com/official-stockfish/Stockfish/pull/5143 No functional change
This commit is contained in:
parent
e13e4cfb83
commit
68d58d94da
1 changed files with 1 additions and 1 deletions
|
@ -1001,7 +1001,7 @@ moves_loop: // When in check, search starts here
|
||||||
// Futility pruning: parent node (~13 Elo)
|
// Futility pruning: parent node (~13 Elo)
|
||||||
if (!ss->inCheck && lmrDepth < 15 && futilityValue <= alpha)
|
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)
|
&& futilityValue < VALUE_TB_WIN_IN_MAX_PLY)
|
||||||
bestValue = (bestValue + futilityValue * 3) / 4;
|
bestValue = (bestValue + futilityValue * 3) / 4;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue