Skip to content

Commit c80ff7c

Browse files
authored
Merge pull request #212 from fastfloat/issue211
Renaming the using for the local type.
2 parents 71c2ad1 + a14f8c5 commit c80ff7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/fast_float/float_common.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,10 @@ template <> inline constexpr binary_format<double>::equiv_uint
572572
template<typename T>
573573
fastfloat_really_inline FASTFLOAT_CONSTEXPR20
574574
void to_float(bool negative, adjusted_mantissa am, T &value) {
575-
using 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();
575+
using fastfloat_uint = typename binary_format<T>::equiv_uint;
576+
fastfloat_uint word = (fastfloat_uint)am.mantissa;
577+
word |= fastfloat_uint(am.power2) << binary_format<T>::mantissa_explicit_bits();
578+
word |= fastfloat_uint(negative) << binary_format<T>::sign_index();
579579
#if FASTFLOAT_HAS_BIT_CAST
580580
value = std::bit_cast<T>(word);
581581
#else

0 commit comments

Comments
 (0)