Skip to content

Commit

Permalink
Size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
ratgr committed Feb 23, 2025
1 parent 9685fee commit 1e118db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1383,9 +1383,9 @@ CHIP_ERROR Instance::EnumerateAcceptedCommands(const ConcreteClusterPath & clust

if(hasNet | hasWifi) {
//Avoid extra memory allocation
return builder.ReferenceExisting({commands, 5z + (hasCred? 1z : 0z)});
return builder.ReferenceExisting({commands, size_t{5} + (hasCred? 1 : 0)});
} else if(hasCred) {
return builder.ReferenceExisting({commands + 5z, 1z});
return builder.ReferenceExisting({commands + 5, size_t{1}});
}

return CHIP_NO_ERROR;
Expand Down

0 comments on commit 1e118db

Please sign in to comment.