mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Fix an Intel warning in san.cpp
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -172,7 +172,7 @@ Move move_from_san(const Position& pos, const std::string& movestr) {
|
|||||||
for (size_t i = 0; i < movestr.length(); i++)
|
for (size_t i = 0; i < movestr.length(); i++)
|
||||||
{
|
{
|
||||||
char type, c = movestr[i];
|
char type, c = movestr[i];
|
||||||
if (pieceLetters.find(c) != -1)
|
if (pieceLetters.find(c) != std::string::npos)
|
||||||
type = 'P';
|
type = 'P';
|
||||||
else if (c >= 'a' && c <= 'h')
|
else if (c >= 'a' && c <= 'h')
|
||||||
type = 'F';
|
type = 'F';
|
||||||
|
|||||||
Reference in New Issue
Block a user