Small cleanups

closes https://github.com/official-stockfish/Stockfish/pull/2567

No functional change.
This commit is contained in:
Joost VandeVondele
2020-03-14 17:04:50 +01:00
parent ec2002c594
commit ddcbacd04d
8 changed files with 30 additions and 29 deletions

View File

@@ -260,7 +260,7 @@ string UCI::value(Value v) {
stringstream ss;
if (abs(v) < VALUE_MATE - MAX_PLY)
if (abs(v) < VALUE_MATE_IN_MAX_PLY)
ss << "cp " << v * 100 / PawnValueEg;
else
ss << "mate " << (v > 0 ? VALUE_MATE - v + 1 : -VALUE_MATE - v) / 2;