-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix and rename _Within_limits
, add tests
#3247
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
tests/std/tests/Dev11_0316853_find_memchr_optimization/test.cpp
Outdated
Show resolved
Hide resolved
tests/std/tests/Dev11_0316853_find_memchr_optimization/test.cpp
Outdated
Show resolved
Hide resolved
I removed the optimization change; I'll open an issue for it. |
_Within_limits
, add tests
Requested changes have been made
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
} else { | ||
constexpr auto max_vt = numeric_limits<ValueType>::max(); | ||
if constexpr (ElementType{-1} == max_vt) { | ||
// ugly conversions :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-inclusive conversion shaming! (No change requested.)
Thanks for fixing this runtime correctness regression! 🛠️ 😻 ✅ |
Fixes #3244, I believe.