[libc] tweak strtof errno behavior
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. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D113626
Loading
Please sign in to comment