X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpiece.cpp;h=40babba695165c8ac7630f1e9b0c0222746308ea;hp=382ed6456312604c73e2ceea1f9ad40b37c9776e;hb=683595fee15a1d8ceeb1bbd577d96ed9c0f8aaaa;hpb=659c54582ddb1bbbf80f7022a80c027ab0bd4c42 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) {