mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +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.
|
||||
// FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN fix this.
|
||||
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;
|
||||
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
|
||||
answer.negative = (*p == UC('-'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user