X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fuci.cpp;fp=src%2Fuci.cpp;h=5f250a3617aea6116555698ca9e137e491892391;hp=d0341bd71683a173e8096317cfa1b5e46405bfb4;hb=a069a1bbbfb60abddbe3fe5276b06f35f783f41c;hpb=07a2619b62a25910a32ad8a4e9912f748338580f diff --git a/src/uci.cpp b/src/uci.cpp index d0341bd7..5f250a36 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -354,9 +354,9 @@ std::string UCI::value(Value v) { std::stringstream ss; - if (abs(v) < VALUE_TB_WIN_IN_MAX_PLY) + if (std::abs(v) < VALUE_TB_WIN_IN_MAX_PLY) ss << "cp " << UCI::to_cp(v); - else if (abs(v) <= VALUE_TB) + else if (std::abs(v) <= VALUE_TB) { const int ply = VALUE_TB - std::abs(v); // recompute ss->ply ss << "cp " << (v > 0 ? 20000 - ply : -20000 + ply);