1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Fix two gcc warnings in san.cpp

One good, the other silly.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2008-12-06 12:01:16 +01:00
parent 2de78ebc7b
commit 6f946f823c

View file

@ -223,7 +223,7 @@ Move move_from_san(const Position& pos, const std::string& movestr) {
toRank = rank_from_char(c); toRank = rank_from_char(c);
state = (i < movestr.length() - 1) ? PROMOTION_OR_CHECK : END; state = (i < movestr.length() - 1) ? PROMOTION_OR_CHECK : END;
} }
else if (state == TO_FILE && fromRank == FILE_NONE) else if (state == TO_FILE && fromRank == RANK_NONE)
{ {
// It's a disambiguation rank instead of a file // It's a disambiguation rank instead of a file
fromRank = rank_from_char(c); fromRank = rank_from_char(c);
@ -263,7 +263,7 @@ Move move_from_san(const Position& pos, const std::string& movestr) {
return MOVE_NONE; return MOVE_NONE;
// Look for a matching move // Look for a matching move
Move m, move; Move m, move = MOVE_NONE;
to = make_square(toFile, toRank); to = make_square(toFile, toRank);
int matches = 0; int matches = 0;