X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpiece.cpp;h=40babba695165c8ac7630f1e9b0c0222746308ea;hp=707c8c57dfae3d53ae3de96d44de1a40d53e91f4;hb=7c267587fc7f454182b4d527607bcf8fdbd8c41c;hpb=f0858cd22972c0f893ab8d012a0f1783cd9faff2 diff --git a/src/piece.cpp b/src/piece.cpp index 707c8c57..40babba6 100644 --- a/src/piece.cpp +++ b/src/piece.cpp @@ -36,7 +36,7 @@ static const char PieceChars[] = " pnbrqk"; char piece_type_to_char(PieceType pt, bool upcase) { - return upcase? toupper(PieceChars[pt]) : PieceChars[pt]; + return char(upcase? toupper(PieceChars[pt]) : PieceChars[pt]); } PieceType piece_type_from_char(char c) {