Skip to content

Use unchecked conversion in clamp #57947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jakobnissen
Copy link
Member

No need to check twice if the value fits in the range of T.

No need to check twice if the value fits in the range of `T`.
@jakobnissen
Copy link
Member Author

Test failures are unrelated, and it passes on most platforms.

@jakobnissen jakobnissen added the performance Must go faster label Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants