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:
Marco Costalba
2009-03-30 11:55:13 +02:00
parent 659c54582d
commit 683595fee1
11 changed files with 28 additions and 22 deletions

View File

@@ -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) {