2009-04-16 Ozkan Sezer <sezeroz@gmail.com>

* gdtoa/strtopx.c: All references I found indicate that the
	mainstream code is correct of the STRTOG_Infinite case.  See, for
	example, http://docs.sun.com/source/819-3688/data.rep.app.html


git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@800 4407c894-4637-0410-b4f5-ada5f102cad1
This commit is contained in:
Ozkan Sezer 2009-04-16 21:45:36 +00:00
parent 2c021be399
commit 8d9d6d402d
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2009-04-16 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/strtopx.c: All references I found indicate that the
mainstream code is correct of the STRTOG_Infinite case. See, for
example, http://docs.sun.com/source/819-3688/data.rep.app.html
* gdtoa/gdtoaimp.h, gdtoa/gethex.c, gdtoa/strtodg.c: Defined a
SET_ERRNO() macro for less ifdefs in actual C code.

View File

@ -93,9 +93,7 @@ static int __strtopx (const char *s, char **sp, lD *V)
case STRTOG_Infinite:
L[_0] = 0x7fff;
/* L[_1] = L[_2] = L[_3] = L[_4] = 0;*/
L[_1] = 0x8000;
L[_2] = L[_3] = L[_4] = 0;
L[_1] = L[_2] = L[_3] = L[_4] = 0;
break;
case STRTOG_NaN: