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:
Marco Costalba
2009-02-07 12:31:53 +01:00
parent 2ea7449f2a
commit fa322b3768
3 changed files with 6 additions and 6 deletions

View File

@@ -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];
}