projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1d101f8
)
Fix compiler warning
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Sun, 20 Aug 2023 10:06:05 +0000 (12:06 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Sun, 20 Aug 2023 10:06:05 +0000 (12:06 +0200)
src/parser.cpp
patch
|
blob
|
history
diff --git
a/src/parser.cpp
b/src/parser.cpp
index
f74bdef
..
7623e5a
100644
(file)
--- a/
src/parser.cpp
+++ b/
src/parser.cpp
@@
-172,7
+172,7
@@
template <bool Current, class T> bool VariantParser<DoCheck>::parse_attribute(co
{
target = T();
char token;
- size_t idx;
+ size_t idx = std::string::npos;
std::stringstream ss(it->second);
while (ss >> token && (idx = token == '*' ? size_t(ALL_PIECES) : pieceToChar.find(toupper(token))) != std::string::npos)
set(PieceType(idx), target);