We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70bf6db commit 7344d5fCopy full SHA for 7344d5f
1 file changed
lib/tokenize.cpp
@@ -10043,7 +10043,7 @@ void Tokenizer::simplifyBitfields()
10043
!Token::Match(tok->next(), "case|public|protected|private|class|struct") &&
10044
!Token::simpleMatch(tok->tokAt(2), "default :")) {
10045
Token *tok1 = typeTok->next();
10046
- if (Token::Match(tok1, "%name% : %num% [;=]"))
+ if (Token::Match(tok1, "%name% : %num% [;=,]"))
10047
if (!tok1->setBits(MathLib::toBigNumber(tok1->tokAt(2))))
10048
tooLargeError(tok1->tokAt(2));
10049
if (tok1 && tok1->tokAt(2) &&
0 commit comments