diff --git a/src/tokenize.cpp b/src/tokenize.cpp index 5a82af5d6..044c36e0c 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -4031,7 +4031,8 @@ void Tokenizer::simplifyComma() } } - if (tok->str() != ",") + // If token after the comma is a constant number, simplification is not required. + if (tok->str() != "," || Token::Match(tok->next(), "%num%")) continue; // We must not accept just any keyword, e.g. accepting int