diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 1ca735e53..b74eb6793 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -3808,6 +3808,8 @@ void Tokenizer::simplifySizeof() { if (Token::Match(tok, "class|struct %var%")) { + // we assume that the size of structs and classes are always + // 100 bytes. _typeSize[tok->strAt(1)] = 100; } }