From: Marco Costalba Date: Sat, 6 Dec 2008 10:56:34 +0000 (+0100) Subject: Fix an Intel warning in san.cpp X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=2de78ebc7b40ff7f5155c9fd4a6a04a4b4138460 Fix an Intel warning in san.cpp Signed-off-by: Marco Costalba --- 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';