Skip to content

Commit 48b83d2

Browse files
Update src/data-model-providers/codegen/CodegenDataModelProvider.cpp
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
1 parent 450c980 commit 48b83d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data-model-providers/codegen/CodegenDataModelProvider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ CHIP_ERROR CodegenDataModelProvider::Attributes(const ConcreteClusterPath & path
275275
// We have Attributes from ember + global attributes that are NOT in ember metadata.
276276
// We have to report them all
277277
constexpr size_t kGlobalAttributeNotInMetadataCount =
278-
sizeof(GlobalAttributesNotInMetadata) / sizeof(GlobalAttributesNotInMetadata[0]);
278+
ArraySize(GlobalAttributesNotInMetadata);
279279

280280
ReturnErrorOnFailure(builder.EnsureAppendCapacity(cluster->attributeCount + kGlobalAttributeNotInMetadataCount));
281281

0 commit comments

Comments
 (0)