diff options
author | David Schultz <das@FreeBSD.org> | 2011-03-09 06:14:33 +0000 |
---|---|---|
committer | David Schultz <das@FreeBSD.org> | 2011-03-09 06:14:33 +0000 |
commit | 21a2b1c905e6a3ae73e3ca075627e81a2ccac58f (patch) | |
tree | 80228e2b243573cbd695c52e7a912cc1643cd1b2 /g_dfmt.c | |
parent | 9ea4d2a87415d5928272c15f22583103f2ccfe30 (diff) |
Notes
Diffstat (limited to 'g_dfmt.c')
-rw-r--r-- | g_dfmt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g_dfmt.c b/g_dfmt.c index 23d8b2470f4d8..8367868f47c40 100644 --- a/g_dfmt.c +++ b/g_dfmt.c @@ -88,6 +88,8 @@ g_dfmt(char *buf, double *d, int ndig, size_t bufsize) if (ndig <= 0) mode = 0; i = STRTOG_Normal; + if (sign) + i = STRTOG_Normal | STRTOG_Neg; s = gdtoa(fpi, ex, bits, &i, mode, ndig, &decpt, &se); return g__fmt(buf, s, se, decpt, sign, bufsize); } |