Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ianfab committed Aug 20, 2023
1 parent 1d101f8 commit 865efff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 865efff

Please sign in to comment.