Skip to content

Commit 09e7d4e

Browse files
Update tokenize.cpp
1 parent 9ba7901 commit 09e7d4e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/tokenize.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10078,10 +10078,7 @@ void Tokenizer::simplifyBitfields()
1007810078
if (!Token::Match(tok, ";|{|}|public:|protected:|private:"))
1007910079
continue;
1008010080

10081-
bool isEnum = false;
10082-
if (tok->str() == "}") {
10083-
isEnum = isEnumStart(tok->link());
10084-
}
10081+
const bool isEnum = tok->str() == "}" && isEnumStart(tok->link());
1008510082

1008610083
const auto tooLargeError = [this](const Token *tok) {
1008710084
const auto max = std::numeric_limits<short>::max();

0 commit comments

Comments
 (0)