diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index a45b1e850..e64f943bc 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,9 @@ +2008-05-22 Danny Smith + + [ mingw-Bugs-1961893 ] + * mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa + mode to 2 for E format. + 2008-05-15 Ramiro Polla * include/stdlib.h: Fix strtod under C++. diff --git a/winsup/mingw/mingwex/gdtoa/mingw_snprintf.c b/winsup/mingw/mingwex/gdtoa/mingw_snprintf.c index 5df2ab1f3..26f4573e8 100755 --- a/winsup/mingw/mingwex/gdtoa/mingw_snprintf.c +++ b/winsup/mingw/mingwex/gdtoa/mingw_snprintf.c @@ -840,7 +840,7 @@ x_sprintf } if (prec < 0) prec = 0; - s = s0 = __ldtoa(xx, prec ? 2 : 0, prec + 1, &decpt, + s = s0 = __ldtoa(xx, 2, prec + 1, &decpt, &sgn, &se); if (decpt == -32768) goto fmt9999;