From: Rich Felker Date: Fri, 8 Jun 2012 15:17:49 +0000 (-0400) Subject: fix scanning of "-0x" pseudo-hex float (must give negative zero) X-Git-Tag: v0.9.2~44 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f457b1cb0d49f1b47bc7baf4bb516f1860816f03;p=oweals%2Fmusl.git fix scanning of "-0x" pseudo-hex float (must give negative zero) --- 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++;