]> git.sesse.net Git - stockfish/blobdiff - src/notation.cpp
Retire operator|(File f, Rank r)
[stockfish] / src / notation.cpp
index 3ca43deb402515b61a893389bdccc96204ffe684..c74346c02930b762f48c46f91a710c9b6daf78e6 100644 (file)
@@ -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);