Skip to content

Commit 2af570d

Browse files
authored
Tokenizer: added missing end token in __typeof matching in setVarIDPass1() (#7952)
1 parent 15a4f63 commit 2af570d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4811,7 +4811,7 @@ void Tokenizer::setVarIdPass1()
48114811
if (cpp || mSettings.standards.c >= Standards::C23) {
48124812
declTypeTok = Token::findmatch(tok, "decltype|typeof (", tok2);
48134813
} else {
4814-
declTypeTok = Token::findsimplematch(tok, "__typeof (");
4814+
declTypeTok = Token::findsimplematch(tok, "__typeof (", tok2);
48154815
}
48164816

48174817
if (declTypeTok) {

0 commit comments

Comments
 (0)