Skip to content

Commit d250490

Browse files
committed
Fix
1 parent 6e92c9c commit d250490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/clangimport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ static void setValues(const Tokenizer &tokenizer, const SymbolDatabase *symbolDa
15951595
if (Token::simpleMatch(tok, "sizeof (")) {
15961596
ValueType vt = ValueType::parseDecl(tok->tokAt(2), settings);
15971597
const size_t sz = vt.getSizeOf(settings, ValueType::Accuracy::ExactOrZero, ValueType::SizeOf::Pointer);
1598-
if (sz <= 0)
1598+
if (sz == 0)
15991599
continue;
16001600
long long mul = 1;
16011601
for (const Token *arrtok = tok->linkAt(1)->previous(); arrtok; arrtok = arrtok->previous()) {

0 commit comments

Comments
 (0)