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 bb956b2 commit 0b6d911Copy full SHA for 0b6d911
include/fast_float/float_common.h
@@ -1134,8 +1134,10 @@ template <typename UC>
1134
fastfloat_really_inline constexpr uint8_t ch_to_digit(UC c) {
1135
// wchar_t and char can be signed, so we need to be careful.
1136
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)))];
+ return int_luts<>::chdigit[static_cast<unsigned char>(
+ static_cast<UnsignedUC>(c) &
1139
+ static_cast<UnsignedUC>(
1140
+ -((static_cast<UnsignedUC>(c) & ~0xFFull) == 0)))];
1141
}
1142
1143
fastfloat_really_inline constexpr size_t max_digits_u64(int base) {
0 commit comments