Skip to content

Commit

Permalink
Fix cast
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Oct 2, 2024
1 parent e579c8c commit 7ae2c1b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ unsigned FindNextDeviceTypeIndex(Span<const EmberAfDeviceType> types, const Data
}
}

return types.size();
// cast should be safe as we know we do not have that many types
return static_cast<unsigned>(types.size());
}

const ConcreteCommandPath kInvalidCommandPath(kInvalidEndpointId, kInvalidClusterId, kInvalidCommandId);
Expand Down

0 comments on commit 7ae2c1b

Please sign in to comment.