llvm-project
7c16a31a - Address a handful of C4146 compiler warnings where literals can be replaced with std::numeric_limits (#147623)

Commit
184 days ago
Address a handful of C4146 compiler warnings where literals can be replaced with std::numeric_limits (#147623) This PR addresses instances of compiler warning C4146 that can be replaced with std::numeric_limits. Specifically, these are cases where a literal such as '-1ULL' was used to assign a value to a uint64_t variable. The intent is much cleaner if we use the appropriate std::numeric_limits value<Type>::max() for these cases. Addresses #147439
Author
Parents
Loading