Skip to content

Commit 62f526d

Browse files
committed
fix -Werror=conversion
1 parent 63bbefa commit 62f526d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/fast_float/float_common.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,8 +1067,10 @@ fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
10671067
to_float(bool negative, adjusted_mantissa am, T &value) {
10681068
using equiv_uint = equiv_uint_t<T>;
10691069
equiv_uint word = equiv_uint(am.mantissa);
1070-
word |= equiv_uint(am.power2) << binary_format<T>::mantissa_explicit_bits();
1071-
word |= equiv_uint(negative) << binary_format<T>::sign_index();
1070+
word = equiv_uint(word | equiv_uint(am.power2)
1071+
<< binary_format<T>::mantissa_explicit_bits());
1072+
word =
1073+
equiv_uint(word | equiv_uint(negative) << binary_format<T>::sign_index());
10721074
#if FASTFLOAT_HAS_BIT_CAST
10731075
value = std::bit_cast<T>(word);
10741076
#else

0 commit comments

Comments
 (0)