summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-08 11:17:49 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-08 11:17:49 -0400
commitf457b1cb0d49f1b47bc7baf4bb516f1860816f03 (patch)
treee9e1c81c8157a013bff33e74a54361469198e7a9 /src/internal
parent3d649468c7315d43aa99a44e882118d6872cb6ec (diff)
downloadmusl-f457b1cb0d49f1b47bc7baf4bb516f1860816f03.tar.gz
musl-f457b1cb0d49f1b47bc7baf4bb516f1860816f03.tar.bz2
musl-f457b1cb0d49f1b47bc7baf4bb516f1860816f03.tar.xz
musl-f457b1cb0d49f1b47bc7baf4bb516f1860816f03.zip
fix scanning of "-0x" pseudo-hex float (must give negative zero)
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/floatscan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/floatscan.c b/src/internal/floatscan.c
index 4b335f5c..68f576c9 100644
--- a/src/internal/floatscan.c
+++ b/src/internal/floatscan.c
@@ -352,7 +352,7 @@ static long double hexfloat(FILE *f, int bits, int emin, int sign, int pok)
} else {
shlim(f, 0);
}
- return 0;
+ return sign * 0.0;
}
if (!gotrad) rp = dc;
while (dc<8) x *= 16, dc++;