mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Silence a bunch of warnings under MSVC /W4
Still some remain, but are really the silly ones. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -35,8 +35,8 @@
|
||||
|
||||
static const char PieceChars[] = " pnbrqk";
|
||||
|
||||
int piece_type_to_char(PieceType pt, bool upcase) {
|
||||
return upcase? toupper(PieceChars[pt]) : PieceChars[pt];
|
||||
char piece_type_to_char(PieceType pt, bool upcase) {
|
||||
return char(upcase? toupper(PieceChars[pt]) : PieceChars[pt]);
|
||||
}
|
||||
|
||||
PieceType piece_type_from_char(char c) {
|
||||
|
||||
Reference in New Issue
Block a user