]> git.sesse.net Git - stockfish/blobdiff - src/move.cpp
Retire piece.cpp
[stockfish] / src / move.cpp
index 31622c2d8bc06de2e081092c261a1bc3525d91b0..5ef64fe4b5c0f8c14864887f976b386294dc4a0d 100644 (file)
@@ -23,6 +23,7 @@
 ////
 
 #include <cassert>
+#include <cctype>
 
 #include "move.h"
 #include "piece.h"
@@ -128,7 +129,7 @@ const std::string move_to_string(Move move, bool chess960) {
 
       str = square_to_string(from) + square_to_string(to);
       if (move_is_promotion(move))
-          str += piece_type_to_char(move_promotion_piece(move), false);
+          str += char(tolower(piece_type_to_char(move_promotion_piece(move))));
   }
   return str;
 }