X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=4f72d6588ef3c3f4e6cdf8e60e3206a8cba7de10;hp=8ebd542a95609b9e21f0432e8e74c10d08407357;hb=2469daebb1b2ec2ca1653754c35327c16838938e;hpb=aa60c80adec4d537c5dbd8d60b3d08ce0a807d9a diff --git a/src/position.cpp b/src/position.cpp index 8ebd542a..4f72d658 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -423,7 +423,7 @@ const string Position::fen() const { if (!can_castle(WHITE) && !can_castle(BLACK)) ss << '-'; - ss << (ep_square() == SQ_NONE ? " - " : " " + UCI::to_string(ep_square()) + " ") + ss << (ep_square() == SQ_NONE ? " - " : " " + UCI::format_square(ep_square()) + " ") << st->rule50 << " " << 1 + (gamePly - (sideToMove == BLACK)) / 2; return ss.str(); @@ -450,7 +450,7 @@ const string Position::pretty() const { << std::setfill('0') << std::setw(16) << st->key << "\nCheckers: "; for (Bitboard b = checkers(); b; ) - ss << UCI::to_string(pop_lsb(&b)) << " "; + ss << UCI::format_square(pop_lsb(&b)) << " "; return ss.str(); }