Committed as obvious.

2008-05-22  Danny Smith  <dannysmith@users.sourceforge.net>

	[ mingw-Bugs-1961893 ]
	* mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa mode to 2
	for E format.
This commit is contained in:
Danny Smith 2008-05-22 02:09:06 +00:00
parent 9ea50a60e1
commit 0b99028af4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-05-22 Danny Smith <dannysmith@users.sourceforge.net>
[ mingw-Bugs-1961893 ]
* mingwex/gdtoa/mingw_snprint.c (x_sprintf): Always set __ldtoa
mode to 2 for E format.
2008-05-15 Ramiro Polla <ramiro@lisha.ufsc.br>
* include/stdlib.h: Fix strtod under C++.

View File

@ -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;