about summary refs log tree commit diff
path: root/src/stdio/putchar_unlocked.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-10-18 19:56:53 -0400
committerRich Felker <dalias@aerifal.cx>2019-10-18 20:52:18 -0400
commitbff78954995b115e469aadb7636357798978fffd (patch)
treed8f00a4edb17231a70ae580e041197a609e04e00 /src/stdio/putchar_unlocked.c
parent2d3083e746cf314c16048875e919305b1018bf8b (diff)
downloadmusl-bff78954995b115e469aadb7636357798978fffd.tar.gz
musl-bff78954995b115e469aadb7636357798978fffd.tar.xz
musl-bff78954995b115e469aadb7636357798978fffd.zip
fix incorrect use of fabs on long double operand in floatscan.c
based on patch by Dan Gohman, who caught this via compiler warnings.
analysis by Szabolcs Nagy determined that it's a bug, whereby errno
can be set incorrectly for values where the coercion from long double
to double causes rounding. it seems likely that floating point status
flags may be set incorrectly as a result too.

at the same time, clean up use of preprocessor concatenation involving
LDBL_MANT_DIG, which spuriously depends on it being a single unadorned
decimal integer literal, and instead use the equivalent formulation
2/LDBL_EPSILON. an equivalent change on the printf side was made in
commit bff6095d915f3e41206e47ea2a570ecb937ef926.
Diffstat (limited to 'src/stdio/putchar_unlocked.c')
0 files changed, 0 insertions, 0 deletions