Skip to content

Commit aeebbfa

Browse files
Update checksizeof.cpp
1 parent 4cba90d commit aeebbfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checksizeof.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void CheckSizeofImpl::checkSizeofForArrayParameter()
8787
}
8888

8989
const Variable *var = varTok->variable();
90-
if (var && var->isArray() && var->isArgument() && !var->isReference())
90+
if (var && var->isArray() && var->isArgument() && !var->isReference()&& !(var->isStlType() && var->getTypeName() == "std::array"))
9191
sizeofForArrayParameterError(tok);
9292
}
9393
}

0 commit comments

Comments
 (0)