Skip to content

Commit 1e118db

Browse files
committed
Size_t
1 parent 9685fee commit 1e118db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/clusters/network-commissioning/network-commissioning.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1383,9 +1383,9 @@ CHIP_ERROR Instance::EnumerateAcceptedCommands(const ConcreteClusterPath & clust
13831383

13841384
if(hasNet | hasWifi) {
13851385
//Avoid extra memory allocation
1386-
return builder.ReferenceExisting({commands, 5z + (hasCred? 1z : 0z)});
1386+
return builder.ReferenceExisting({commands, size_t{5} + (hasCred? 1 : 0)});
13871387
} else if(hasCred) {
1388-
return builder.ReferenceExisting({commands + 5z, 1z});
1388+
return builder.ReferenceExisting({commands + 5, size_t{1}});
13891389
}
13901390

13911391
return CHIP_NO_ERROR;

0 commit comments

Comments
 (0)