From 6f946f823c72bcb4a80de6e50cb5111736ffa885 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 6 Dec 2008 12:01:16 +0100 Subject: [PATCH] Fix two gcc warnings in san.cpp One good, the other silly. 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 a0ff4cdd..222a1043 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -223,7 +223,7 @@ Move move_from_san(const Position& pos, const std::string& movestr) { toRank = rank_from_char(c); 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 fromRank = rank_from_char(c); @@ -263,7 +263,7 @@ Move move_from_san(const Position& pos, const std::string& movestr) { return MOVE_NONE; // Look for a matching move - Move m, move; + Move m, move = MOVE_NONE; to = make_square(toFile, toRank); int matches = 0; -- 2.39.2