Skip to content

Commit 0b6d911

Browse files
committed
format
1 parent bb956b2 commit 0b6d911

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
@@ -1134,8 +1134,10 @@ template <typename UC>
11341134
fastfloat_really_inline constexpr uint8_t ch_to_digit(UC c) {
11351135
// wchar_t and char can be signed, so we need to be careful.
11361136
using UnsignedUC = typename std::make_unsigned<UC>::type;
1137-
return int_luts<>::chdigit[static_cast<unsigned char>(static_cast<UnsignedUC>(c)
1138-
& static_cast<UnsignedUC>(-((static_cast<UnsignedUC>(c) & ~0xFFull) == 0)))];
1137+
return int_luts<>::chdigit[static_cast<unsigned char>(
1138+
static_cast<UnsignedUC>(c) &
1139+
static_cast<UnsignedUC>(
1140+
-((static_cast<UnsignedUC>(c) & ~0xFFull) == 0)))];
11391141
}
11401142

11411143
fastfloat_really_inline constexpr size_t max_digits_u64(int base) {

0 commit comments

Comments
 (0)