Skip to content

Commit

Permalink
Fix cast ... int promotion is annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Dec 18, 2024
1 parent 6addabd commit 9534473
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ class EndpointIterator : public DataModel::MetaDataIterator<EndpointId, DataMode
if ((hint < lastEndpointIndex) && (emberAfEndpointFromIndex(hint) == id))
{
mMetadataIndex = hint;
mIndex = hint + 1;
mIndex = static_cast<uint16_t>(hint + 1);
return true;
}
// not found. Just seek until found
Expand Down

0 comments on commit 9534473

Please sign in to comment.