2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
* gdtoa/strtopx.c (__strtold): Fixed erroneous commit which overwritten
Kai's aliasing violation fixes.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@763 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-crt/gdtoa/strtopx.c b/mingw-w64-crt/gdtoa/strtopx.c
index 82a8715..1ef09af 100644
--- a/mingw-w64-crt/gdtoa/strtopx.c
+++ b/mingw-w64-crt/gdtoa/strtopx.c
@@ -104,15 +104,17 @@
return k;
}
-long double __cdecl
+long double /*__cdecl*/
__strtold (const char * __restrict__ src, char ** __restrict__ endptr)
{
- long double ret = 0.0;
+ lD ret;
+
+ ret.D = 0.0L;
__strtopx(src, endptr, &ret);
- return ret;
+ return ret.D;
}
-long double __cdecl
+long double /*__cdecl*/
strtold (const char * __restrict__ src, char ** __restrict__ endptr)
__attribute__((alias("__strtold")));