X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmove.cpp;h=5ef64fe4b5c0f8c14864887f976b386294dc4a0d;hp=31622c2d8bc06de2e081092c261a1bc3525d91b0;hb=00d9fe8af09891e82d66f88c48b513d6a7326f2a;hpb=85df24624a78acb9da89242be4024eb00dd16dab diff --git a/src/move.cpp b/src/move.cpp index 31622c2d..5ef64fe4 100644 --- a/src/move.cpp +++ b/src/move.cpp @@ -23,6 +23,7 @@ //// #include +#include #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; }