mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Use size_t instead of int
Remove some warning. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
52487c4f04
commit
a0aa8e760a
1 changed files with 2 additions and 2 deletions
|
@ -189,7 +189,7 @@ Move move_from_san(Position &pos, const std::string &movestr) {
|
||||||
}
|
}
|
||||||
*cc = '\0';
|
*cc = '\0';
|
||||||
|
|
||||||
int left = 0, right = strlen(str) - 1;
|
size_t left = 0, right = strlen(str) - 1;
|
||||||
PieceType pt = NO_PIECE_TYPE, promotion;
|
PieceType pt = NO_PIECE_TYPE, promotion;
|
||||||
Square to;
|
Square to;
|
||||||
File fromFile = FILE_NONE;
|
File fromFile = FILE_NONE;
|
||||||
|
@ -276,7 +276,7 @@ const std::string line_to_san(const Position &pos, Move line[], int startColumn,
|
||||||
UndoInfo u;
|
UndoInfo u;
|
||||||
std::stringstream s;
|
std::stringstream s;
|
||||||
std::string moveStr;
|
std::string moveStr;
|
||||||
int length, maxLength;
|
size_t length, maxLength;
|
||||||
|
|
||||||
length = 0;
|
length = 0;
|
||||||
maxLength = 80 - startColumn;
|
maxLength = 80 - startColumn;
|
||||||
|
|
Loading…
Add table
Reference in a new issue