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