summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2009-06-08 20:08:20 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2009-06-08 20:08:20 +0000
commit44dc31f36325c928ed929e08f7239558ef7d3664 (patch)
tree67a46d94350df8e7e99da617754608a60407bcfa /lib
parent9ac12a8d84d862af919d357070e5e9bb8c7349ca (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gdtoa/_ldtoa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gdtoa/_ldtoa.c b/lib/libc/gdtoa/_ldtoa.c
index e43efbed1416..caa6cc74811a 100644
--- a/lib/libc/gdtoa/_ldtoa.c
+++ b/lib/libc/gdtoa/_ldtoa.c
@@ -61,6 +61,7 @@ __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign,
char *ret;
union IEEEl2bits u;
uint32_t bits[(LDBL_MANT_DIG + 31) / 32];
+ void *vbits = bits;
u.e = *ld;
*sign = u.bits.sign;
@@ -91,7 +92,7 @@ __ldtoa(long double *ld, int mode, int ndigits, int *decpt, int *sign,
abort();
}
- ret = gdtoa(&fpi, be, (ULong *)bits, &kind, mode, ndigits, decpt, rve);
+ ret = gdtoa(&fpi, be, vbits, &kind, mode, ndigits, decpt, rve);
if (*decpt == -32768)
*decpt = INT_MAX;
return ret;