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