[libc-commits] [libc] [libc][NFC] Clean up conversion warnings in math function implementations. (PR #74697)
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Fri Dec 8 06:12:32 PST 2023
================
@@ -94,7 +94,7 @@ template <size_t Bits> struct DyadicFloat {
return 0.0;
// Assume that it is normalized, and output is also normal.
- constexpr size_t PRECISION = FloatProperties<T>::MANTISSA_WIDTH + 1;
+ constexpr uint32_t PRECISION = FloatProperties<T>::MANTISSA_WIDTH + 1;
----------------
gchatelet wrote:
Not for this patch but shouldn't this be:
```
constexpr uint32_t PRECISION = FloatProperties<T>::MANTISSA_PRECISION ;
```
https://github.com/llvm/llvm-project/pull/74697
More information about the libc-commits
mailing list