X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpiece.cpp;h=40babba695165c8ac7630f1e9b0c0222746308ea;hp=382ed6456312604c73e2ceea1f9ad40b37c9776e;hb=72c7595f8ac72c7831ee319b8b0bc46404c5fc27;hpb=fa322b376823a1d8868eb45d07e2e4331359faae diff --git a/src/piece.cpp b/src/piece.cpp index 382ed645..40babba6 100644 --- a/src/piece.cpp +++ b/src/piece.cpp @@ -35,8 +35,8 @@ static const char PieceChars[] = " pnbrqk"; -int piece_type_to_char(PieceType pt, bool upcase) { - return upcase? toupper(PieceChars[pt]) : PieceChars[pt]; +char piece_type_to_char(PieceType pt, bool upcase) { + return char(upcase? toupper(PieceChars[pt]) : PieceChars[pt]); } PieceType piece_type_from_char(char c) {