mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
piece_type_to_char() default argument in declaration
Default argument should be in declaration where it is visible through header include, not in definition. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user