X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=inline;f=src%2Fpiece.cpp;fp=src%2Fpiece.cpp;h=382ed6456312604c73e2ceea1f9ad40b37c9776e;hb=fa322b376823a1d8868eb45d07e2e4331359faae;hp=707c8c57dfae3d53ae3de96d44de1a40d53e91f4;hpb=2ea7449f2a328213b85e043f2de9697d4517d6f7;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]; }