Skip to content

Commit

Permalink
Try to work around GCC 4.9 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Nov 14, 2024
1 parent 3ebb856 commit bd53fe3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/fast_float/fast_float.h
Original file line number Diff line number Diff line change
Expand Up @@ -3588,9 +3588,7 @@ template <typename T, typename UC>
from_chars_result_t<UC> FASTFLOAT_CONSTEXPR14 parse_infnan(UC const *first,
UC const *last,
T &value) noexcept {
from_chars_result_t<UC> answer{};
answer.ptr = first;
answer.ec = std::errc(); // be optimistic
from_chars_result_t<UC> answer{first, std::errc()}; // be optimistic
bool minusSign = false;
if (*first ==
UC('-')) { // assume first < last, so dereference without checks;
Expand Down

0 comments on commit bd53fe3

Please sign in to comment.