Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Apr 25, 2022
1 parent 65f1c55 commit 2715821
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/AttributePathExpandIterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ void AttributePathExpandIterator::PrepareAttributeIndexRange(const AttributePath
{
if (GlobalAttributesNotInMetadata[idx] == aAttributePath.mAttributeId)
{
mGlobalAttributeIndex = idx;
// generally safe: we have a static cast check for GlobalAttributesNotInMetaData size
VerifyOrDie(idx <= UINT8_MAX);
mGlobalAttributeIndex = static_cast<uint8_t>(idx);
break;
}
}
Expand Down

0 comments on commit 2715821

Please sign in to comment.