When strtof/d/ld return a subnormal number they may set errno to
ERANGE. This change makes this behavior more consistent by making any
decimal number converting to a subnormal set errno to ERANGE. This
brings it in line with hexadecimals, which currently only set errno to
ERANGE if the number is truncated when converting to a subnormal.
Details
Details
- Reviewers
sivachandra lntue - Commits
- rG4cdf9884b60d: [libc] tweak strtof errno behavior
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo