mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
initialization cleanup.
This commit is contained in:
parent
afb54a595e
commit
6aea2fb2e5
@ -297,8 +297,6 @@ parse_number_string(UC const *p, UC const *pend,
|
|||||||
// Consider refactoring the 'parse_number_string' function.
|
// Consider refactoring the 'parse_number_string' function.
|
||||||
// FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN fix this.
|
// FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN fix this.
|
||||||
parsed_number_string_t<UC> answer;
|
parsed_number_string_t<UC> answer;
|
||||||
answer.valid = false;
|
|
||||||
answer.too_many_digits = false;
|
|
||||||
FASTFLOAT_ASSUME(p < pend); // assume p < pend, so dereference without checks;
|
FASTFLOAT_ASSUME(p < pend); // assume p < pend, so dereference without checks;
|
||||||
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
||||||
answer.negative = (*p == UC('-'));
|
answer.negative = (*p == UC('-'));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user