We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba328bb commit eea6fefCopy full SHA for eea6fef
include/fast_float/float_common.h
@@ -573,9 +573,9 @@ template<typename T>
573
fastfloat_really_inline FASTFLOAT_CONSTEXPR20
574
void to_float(bool negative, adjusted_mantissa am, T &value) {
575
using fastfloat_uint = typename binary_format<T>::equiv_uint;
576
- uint word = (uint)am.mantissa;
577
- word |= uint(am.power2) << binary_format<T>::mantissa_explicit_bits();
578
- word |= uint(negative) << binary_format<T>::sign_index();
+ fastfloat_uint word = (uint)am.mantissa;
+ word |= fastfloat_uint(am.power2) << binary_format<T>::mantissa_explicit_bits();
+ word |= fastfloat_uint(negative) << binary_format<T>::sign_index();
579
#if FASTFLOAT_HAS_BIT_CAST
580
value = std::bit_cast<T>(word);
581
#else
0 commit comments