String to float has a condition to prevent overflowing the exponent with
the E notation. To do this it checks if adding that exponent to the
exponent found by parsing the number is greater than the maximum
exponent for the given size of float. The if statements had a gap on
exactly the maximum exponent value that caused it to be treated as the
minimum exponent value. This patch fixes those conditions.
Details
Details
- Reviewers
sivachandra lntue - Commits
- rG3d953234fede: [libc] Fix strtod exponent overflow bug
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo