mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +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:
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user