X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsan.cpp;h=a0ff4cdd86398c7638070d6f4625eefbb41b5e1a;hp=efdf1773956a90510b33034c469bbdb8f8c62758;hb=2de78ebc7b40ff7f5155c9fd4a6a04a4b4138460;hpb=32934c0c8d75fe63e08046f6ba7dd546de67dc01 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';