X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fnotation.cpp;h=c74346c02930b762f48c46f91a710c9b6daf78e6;hp=3ca43deb402515b61a893389bdccc96204ffe684;hb=5f12069cbfc882fdf989d04618ad9c33e603c419;hpb=4eee60343323499d087709614d47e24f66437697 diff --git a/src/notation.cpp b/src/notation.cpp index 3ca43deb..c74346c0 100644 --- a/src/notation.cpp +++ b/src/notation.cpp @@ -70,7 +70,7 @@ const string move_to_uci(Move m, bool chess960) { return "0000"; if (type_of(m) == CASTLING && !chess960) - to = (to > from ? FILE_G : FILE_C) | rank_of(from); + to = make_square(to > from ? FILE_G : FILE_C, rank_of(from)); string move = to_string(from) + to_string(to);