]> git.sesse.net Git - stockfish/blobdiff - src/san.cpp
Fix an Intel warning in san.cpp
[stockfish] / src / san.cpp
index efdf1773956a90510b33034c469bbdb8f8c62758..a0ff4cdd86398c7638070d6f4625eefbb41b5e1a 100644 (file)
@@ -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];
   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';
           type = 'P';
       else if (c >= 'a' && c <= 'h')
           type = 'F';