Skip to content

Commit a4a0153

Browse files
Update valueflow.cpp
1 parent a9f88d4 commit a4a0153

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7079,7 +7079,7 @@ static void valueFlowDynamicBufferSize(const TokenList& tokenlist, const SymbolD
70797079
typeTok = newTok->astParent()->previous(); // hack for "int** z = ..."
70807080
if (typeTok && typeTok->valueType()) {
70817081
const MathLib::bigint typeSize = typeTok->valueType()->typeSize(settings.platform, typeTok->valueType()->pointer > 1);
7082-
if (typeSize >= 0)
7082+
if (typeSize > 0)
70837083
sizeValue = numElem * typeSize;
70847084
}
70857085
}

0 commit comments

Comments
 (0)