Skip to content

Conversation

@shaunrd0
Copy link
Member

@shaunrd0 shaunrd0 commented Mar 1, 2024

While working on #4685 we found it was possible for a cropped range to fall outside of the given domain range. This updates crop_range to call std::clamp instead of min/max to ensure the resulting cropped range is within the domain.


TYPE: BUG
DESC: Update crop_range to clamp to domain range.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #42320: Update crop range to clamp on domain.

@shaunrd0 shaunrd0 requested a review from KiterLuc March 1, 2024 23:07
@KiterLuc KiterLuc merged commit 619f3ae into dev Mar 2, 2024
@KiterLuc KiterLuc deleted the smr/sc-42320/update-crop-range branch March 2, 2024 10:41
davisp pushed a commit to davisp/TileDB that referenced this pull request Mar 3, 2024
While working on TileDB-Inc#4685 we found it was possible for a cropped range to
fall outside of the given domain range. This updates crop_range to call
`std::clamp` instead of min/max to ensure the resulting cropped range is
within the domain.

---
TYPE: BUG
DESC: Update crop_range to clamp to domain range.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants