mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +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
@@ -124,7 +124,7 @@ inline SquareDelta pawn_push(Color c) {
|
||||
//// Prototypes
|
||||
////
|
||||
|
||||
extern char piece_type_to_char(PieceType pt, bool upcase);
|
||||
extern char piece_type_to_char(PieceType pt, bool upcase = false);
|
||||
extern PieceType piece_type_from_char(char c);
|
||||
extern bool piece_is_ok(Piece pc);
|
||||
extern bool piece_type_is_ok(PieceType pt);
|
||||
|
||||
Reference in New Issue
Block a user