Skip to content

Commit f9d2efa

Browse files
committed
Make the encode explicit on value type
1 parent ebd820f commit f9d2efa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/server-cluster/tests/TestServerClusterInterface.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class FakeServerClusterInterface : public ServerClusterInterface
5454
switch (request.path.mAttributeId)
5555
{
5656
case Globals::Attributes::FeatureMap::Id:
57-
return encoder.Encode(0);
57+
return encoder.Encode<uint32_t>(0);
5858
case Globals::Attributes::ClusterRevision::Id:
59-
return encoder.Encode(123);
59+
return encoder.Encode<uint32_t>(123);
6060
}
6161
return CHIP_ERROR_INVALID_ARGUMENT;
6262
}

src/app/server-cluster/tests/TestServerClusterInterfaceRegistry.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ class FakeServerClusterInterface : public ServerClusterInterface
5555
switch (request.path.mAttributeId)
5656
{
5757
case Globals::Attributes::FeatureMap::Id:
58-
return encoder.Encode(0);
58+
return encoder.Encode<uint32_t>(0);
5959
case Globals::Attributes::ClusterRevision::Id:
60-
return encoder.Encode(123);
60+
return encoder.Encode<uint32_t>(123);
6161
}
6262
return CHIP_ERROR_INVALID_ARGUMENT;
6363
}

0 commit comments

Comments
 (0)