projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
32934c0
)
Fix an Intel warning in san.cpp
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 6 Dec 2008 10:56:34 +0000 (11:56 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 6 Dec 2008 11:31:48 +0000 (12:31 +0100)
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/san.cpp
patch
|
blob
|
history
diff --git
a/src/san.cpp
b/src/san.cpp
index
efdf177
..
a0ff4cd
100644
(file)
--- 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';