Skip to content

Commit b95c1e6

Browse files
committed
Bitfields may be followed by comma
1 parent 9fca821 commit b95c1e6

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
@@ -10046,7 +10046,7 @@ void Tokenizer::simplifyBitfields()
1004610046
!Token::Match(tok->next(), "case|public|protected|private|class|struct") &&
1004710047
!Token::simpleMatch(tok->tokAt(2), "default :")) {
1004810048
Token *tok1 = typeTok->next();
10049-
if (Token::Match(tok1, "%name% : %num% [;=]"))
10049+
if (Token::Match(tok1, "%name% : %num% [;=,]"))
1005010050
if (!tok1->setBits(MathLib::toBigNumber(tok1->tokAt(2))))
1005110051
tooLargeError(tok1->tokAt(2));
1005210052
if (tok1 && tok1->tokAt(2) &&

0 commit comments

Comments
 (0)