Skip to content

Commit

Permalink
[attribute storage] complete unfinished comment
Browse files Browse the repository at this point in the history
  • Loading branch information
plan44 committed Nov 13, 2024
1 parent 8350c4d commit 7c4c25c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/util/attribute-storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ CHIP_ERROR emberAfSetupDynamicEndpointDeclaration(EmberAfEndpointType & endpoint
// TODO: make endpointType use a pointer to a list of EmberAfCluster* instead, so we can re-use cluster definitions
// instead of duplicating them here once for every instance.
newClusters[i] = *cluster;
// sum up the needed storage, result must
// sum up the needed storage, result must fit into endpointSize member (which is smaller than size_t)
endpointSize += cluster->clusterSize;
if (!CanCastTo<decltype(endpointType.endpointSize)>(endpointSize))
{
Expand Down

0 comments on commit 7c4c25c

Please sign in to comment.