We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 450c980 commit 48b83d2Copy full SHA for 48b83d2
src/data-model-providers/codegen/CodegenDataModelProvider.cpp
@@ -275,7 +275,7 @@ CHIP_ERROR CodegenDataModelProvider::Attributes(const ConcreteClusterPath & path
275
// We have Attributes from ember + global attributes that are NOT in ember metadata.
276
// We have to report them all
277
constexpr size_t kGlobalAttributeNotInMetadataCount =
278
- sizeof(GlobalAttributesNotInMetadata) / sizeof(GlobalAttributesNotInMetadata[0]);
+ ArraySize(GlobalAttributesNotInMetadata);
279
280
ReturnErrorOnFailure(builder.EnsureAppendCapacity(cluster->attributeCount + kGlobalAttributeNotInMetadataCount));
281
0 commit comments