mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-02-10 20:29:55 +08:00
small fix.
This commit is contained in:
parent
325c7236e7
commit
9ff1624d92
@ -53,7 +53,7 @@ fastfloat_really_inline FASTFLOAT_CONSTEXPR20 uint64_t
|
|||||||
read8_to_u64(UC const *chars) {
|
read8_to_u64(UC const *chars) {
|
||||||
if (cpp20_and_in_constexpr() || !std::is_same<UC, char>::value) {
|
if (cpp20_and_in_constexpr() || !std::is_same<UC, char>::value) {
|
||||||
uint64_t val = 0;
|
uint64_t val = 0;
|
||||||
for (uint_fast8_t i = 0; i++ != 8;) {
|
for (uint_fast8_t i = 0; i != 8; ++i) {
|
||||||
val |= uint64_t(uint8_t(*chars)) << (i * 8);
|
val |= uint64_t(uint8_t(*chars)) << (i * 8);
|
||||||
++chars;
|
++chars;
|
||||||
}
|
}
|
||||||
@ -259,7 +259,7 @@ template <typename UC> struct parsed_number_string_t {
|
|||||||
// contains the range of the significant digits
|
// contains the range of the significant digits
|
||||||
span<UC const> integer{}; // non-nullable
|
span<UC const> integer{}; // non-nullable
|
||||||
span<UC const> fraction{}; // nullable
|
span<UC const> fraction{}; // nullable
|
||||||
UC const *lastmatch{nullptr};
|
UC const *lastmatch;
|
||||||
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
||||||
bool negative{false};
|
bool negative{false};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user