X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsan.cpp;h=68515170e1d214b572a48dfff45c9b6daa2dc39e;hp=74fde68eef7340ca0b5aaf90472e08516109fa6f;hb=1d8994402bc6d3132f5147194a8b54e1c00b27a6;hpb=bb751d6c890f5c50c642366d601740366cfae8d0 diff --git a/src/san.cpp b/src/san.cpp index 74fde68e..68515170 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -189,7 +189,7 @@ Move move_from_san(Position &pos, const std::string &movestr) { } *cc = '\0'; - int left = 0, right = strlen(str) - 1; + size_t left = 0, right = strlen(str) - 1; PieceType pt = NO_PIECE_TYPE, promotion; Square to; File fromFile = FILE_NONE; @@ -276,7 +276,7 @@ const std::string line_to_san(const Position &pos, Move line[], int startColumn, UndoInfo u; std::stringstream s; std::string moveStr; - int length, maxLength; + size_t length, maxLength; length = 0; maxLength = 80 - startColumn;