diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-04-07 13:50:05 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-04-16 02:46:05 -0400 |
commit | a65824a74fc49b059ecd684a9edba31070a1794f (patch) | |
tree | c7c347a0c47f2ecdd89b1ad4a286846ec2e8d086 /src/math/trunc.c | |
parent | 9de00a019e01c8a37a0b54f39be4bd54028fc57f (diff) | |
download | musl-a65824a74fc49b059ecd684a9edba31070a1794f.tar.gz musl-a65824a74fc49b059ecd684a9edba31070a1794f.tar.xz musl-a65824a74fc49b059ecd684a9edba31070a1794f.zip |
fix printf rounding with %g for some corner case midpoints
the subsequent rounding code assumes the end pointer (z) accurately reflects the end of significance in the decimal expansion, but for certain large integers, spurious trailing zero slots were left behind when applying the binary exponent. issue reported by Morten Welinder; the analysis of the cause was performed by nsz, who also proposed this change. (cherry picked from commit e94d0692864ecf9522fd6a97610a47a2f718d3de)
Diffstat (limited to 'src/math/trunc.c')
0 files changed, 0 insertions, 0 deletions