From 7c4c25c95693d25a2ef07e0e37638f53c08a8cf6 Mon Sep 17 00:00:00 2001 From: Lukas Zeller Date: Wed, 13 Nov 2024 18:28:42 +0100 Subject: [PATCH] [attribute storage] complete unfinished comment --- src/app/util/attribute-storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/util/attribute-storage.cpp b/src/app/util/attribute-storage.cpp index 67d4b47d030b82..28fd6f2d404eef 100644 --- a/src/app/util/attribute-storage.cpp +++ b/src/app/util/attribute-storage.cpp @@ -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(endpointSize)) {