]> git.sesse.net Git - stockfish/blobdiff - src/piece.cpp
Fix casting warnings under Intel Compiler
[stockfish] / src / piece.cpp
index 707c8c57dfae3d53ae3de96d44de1a40d53e91f4..382ed6456312604c73e2ceea1f9ad40b37c9776e 100644 (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];
 }