diff options
author | Rich Felker <dalias@aerifal.cx> | 2016-10-20 14:40:59 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-10-20 14:40:59 -0400 |
commit | e314258e2fe75b7443db84d2927315dea0f337c8 (patch) | |
tree | 935710cb46ec1b6e9eee7ac36196e9dce5386e20 /dist | |
parent | 6ffdc4579ffb34f4aab69ab4c081badabc7c0a9a (diff) | |
download | musl-e314258e2fe75b7443db84d2927315dea0f337c8.tar.gz musl-e314258e2fe75b7443db84d2927315dea0f337c8.tar.bz2 musl-e314258e2fe75b7443db84d2927315dea0f337c8.tar.xz musl-e314258e2fe75b7443db84d2927315dea0f337c8.zip |
fix minor problem in previous strtod non-nearest rounding bug fix
commit 6ffdc4579ffb34f4aab69ab4c081badabc7c0a9a set lnz in the code
path for non-zero digits after a huge string of zeros, but the
assignment of dc to lnz truncates if the value of dc does not fit in
int; this is possible for some pathologically long inputs, either via
strings on 64-bit systems or via scanf-family functions.
instead, simply set lnz to match the point at which we add the
artificial trailing 1 bit to simulate nonzero digits after a huge
run of zeros.
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions