X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fpiece.cpp;h=e06b6be2715c8d9d02f142b60d38ee6c8cafcadb;hb=0da1d6a84612c8443b3e3c9b3f74890635ce23e2;hp=a4c2220daccfd3ae7c5bc077a8105d81fe3f938a;hpb=d3600c39a745179ed6b094b305d0645e83a1ee86;p=stockfish diff --git a/src/piece.cpp b/src/piece.cpp index a4c2220d..e06b6be2 100644 --- a/src/piece.cpp +++ b/src/piece.cpp @@ -72,7 +72,7 @@ const SquareDelta PawnPush[2] = { static const char PieceChars[] = " pnbrqk"; -char piece_type_to_char(PieceType pt, bool upcase = false) { +char piece_type_to_char(PieceType pt, bool upcase) { return upcase? toupper(PieceChars[pt]) : PieceChars[pt]; }