X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpiece.cpp;fp=src%2Fpiece.cpp;h=e06b6be2715c8d9d02f142b60d38ee6c8cafcadb;hp=a4c2220daccfd3ae7c5bc077a8105d81fe3f938a;hb=9d1e4d041d97d2a11a430a3bb6fa360fca31e69f;hpb=cff3a6d33e50d37322ffae511ddbe4c7e846505e 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]; }