From f457b1cb0d49f1b47bc7baf4bb516f1860816f03 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 8 Jun 2012 11:17:49 -0400 Subject: fix scanning of "-0x" pseudo-hex float (must give negative zero) --- src/internal/floatscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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++; -- cgit v1.2.1