1
0
Fork 0
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:
Joost VandeVondele 2024-03-29 10:25:41 +01:00
parent e13e4cfb83
commit 68d58d94da

View file

@ -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;