From 2de78ebc7b40ff7f5155c9fd4a6a04a4b4138460 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 6 Dec 2008 11:56:34 +0100 Subject: [PATCH] Fix an Intel warning in san.cpp Signed-off-by: Marco Costalba --- src/san.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/san.cpp b/src/san.cpp index efdf1773..a0ff4cdd 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -172,7 +172,7 @@ Move move_from_san(const Position& pos, const std::string& movestr) { for (size_t i = 0; i < movestr.length(); i++) { char type, c = movestr[i]; - if (pieceLetters.find(c) != -1) + if (pieceLetters.find(c) != std::string::npos) type = 'P'; else if (c >= 'a' && c <= 'h') type = 'F'; -- 2.39.2