mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Fix casting warnings under Intel Compiler
Int to Char warning fixed changing the function signature to int. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
static const char PieceChars[] = " pnbrqk";
|
||||
|
||||
char piece_type_to_char(PieceType pt, bool upcase) {
|
||||
int piece_type_to_char(PieceType pt, bool upcase) {
|
||||
return upcase? toupper(PieceChars[pt]) : PieceChars[pt];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user