mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Fix an Intel warning in san.cpp
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
32934c0c8d
commit
2de78ebc7b
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue