Skip to content

Commit 7344d5f

Browse files
committed
Bitfields may be followed by comma
1 parent 70bf6db commit 7344d5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10043,7 +10043,7 @@ void Tokenizer::simplifyBitfields()
1004310043
!Token::Match(tok->next(), "case|public|protected|private|class|struct") &&
1004410044
!Token::simpleMatch(tok->tokAt(2), "default :")) {
1004510045
Token *tok1 = typeTok->next();
10046-
if (Token::Match(tok1, "%name% : %num% [;=]"))
10046+
if (Token::Match(tok1, "%name% : %num% [;=,]"))
1004710047
if (!tok1->setBits(MathLib::toBigNumber(tok1->tokAt(2))))
1004810048
tooLargeError(tok1->tokAt(2));
1004910049
if (tok1 && tok1->tokAt(2) &&

0 commit comments

Comments
 (0)