mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 10:57:43 +00: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:
+2
-2
@@ -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