initialization cleanup.

This commit is contained in:
IRainman 2025-03-28 20:27:39 +03:00
parent afb54a595e
commit 6aea2fb2e5

View File

@ -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('-'));