mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-07-31 00:36:39 +08:00
* const fixes for merged code.
This commit is contained in:
parent
72d3f6c1de
commit
fa48089012
@ -656,7 +656,6 @@ parse_int_string(UC const *p, UC const *pend, T &value,
|
||||
|
||||
if (len >= sizeof(uint32_t)) {
|
||||
digits = read_chars_to_unsigned<uint32_t>(p);
|
||||
|
||||
} else {
|
||||
uint32_t const b0 = static_cast<uint8_t>(p[0]);
|
||||
uint32_t const b1 = (len > 1) ? static_cast<uint8_t>(p[1]) : 0x00u;
|
||||
|
||||
@ -334,7 +334,7 @@ parse_number_slow_path(UC const *first, UC const *last, T &value,
|
||||
bool bjf
|
||||
#endif
|
||||
) noexcept {
|
||||
parsed_number_string_t<UC> pns =
|
||||
parsed_number_string_t<UC> const pns =
|
||||
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
||||
bjf ? parse_number_string<true, UC>(first, last, options, true) :
|
||||
#endif
|
||||
@ -378,7 +378,7 @@ from_chars_float_advanced(UC const *first, UC const *last, T &value,
|
||||
// only by the rare slow paths). Skipping their stores keeps the fat
|
||||
// parsed_number_string_t off the hot path. store_spans is a runtime argument,
|
||||
// so this reuses the single parse_number_string instantiation.
|
||||
parsed_number_string_t<UC> pns =
|
||||
parsed_number_string_t<UC> const pns =
|
||||
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
||||
bjf ? parse_number_string<true, UC>(first, last, options, false) :
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user