Remove unneeded static_cast of return values.#3093
Conversation
It just makes more noise were it should not happen.
|
Thanks, I agree that this is an improvement! The original intention was presumably to silence compiler warnings about truncation when building the STL, but either this was for another compiler (our sources were originally derived from a codebase that targeted many compilers beyond what we currently support), or the compiler has gotten smarter about emitting warnings in this scenario. (The issue is that As long as the STL builds warning-free, I believe this change is fine to make. We also already have Lines 10 to 16 in f9697fc I see a few more sites that can be changed, so I'll validate and push a commit. |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
Thanks for this code cleanup! 😸 😸 😸 😸 😸 😸 😸 😸 😸 |
Co-authored-by: Stephan T. Lavavej <[email protected]>
It just makes more noise were it should not happen.