From 68d58d94da15d175269eaa06b3d224062cf72a70 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Fri, 29 Mar 2024 10:25:41 +0100 Subject: [PATCH] Fix usage of abs vs std::abs close https://github.com/official-stockfish/Stockfish/pull/5143 No functional change --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index fb5a2f00..3f882aab 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1001,7 +1001,7 @@ moves_loop: // When in check, search starts here // Futility pruning: parent node (~13 Elo) 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) bestValue = (bestValue + futilityValue * 3) / 4; continue;