X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpiece.cpp;h=382ed6456312604c73e2ceea1f9ad40b37c9776e;hp=707c8c57dfae3d53ae3de96d44de1a40d53e91f4;hb=659c54582ddb1bbbf80f7022a80c027ab0bd4c42;hpb=f0858cd22972c0f893ab8d012a0f1783cd9faff2 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]; }