From a0aa8e760a892ccc7fe994a654074dc12f252f6e Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Thu, 18 Sep 2008 09:52:09 +0100 Subject: [PATCH] Use size_t instead of int Remove some warning. Signed-off-by: Marco Costalba --- src/san.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2