diff options
author | John Birrell <jb@FreeBSD.org> | 2007-11-21 01:10:42 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 2007-11-21 01:10:42 +0000 |
commit | 3e636fa0e52ac77bf7e60c592426065c0acf9db5 (patch) | |
tree | 78186ff4f00e1d1203b59235e02a1930d2606a28 /lib/libc/gdtoa/_ldtoa.c | |
parent | 8463d7a0513cceec18d2c0d17ee92e813bee920b (diff) |
Notes
Diffstat (limited to 'lib/libc/gdtoa/_ldtoa.c')
-rw-r--r-- | lib/libc/gdtoa/_ldtoa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gdtoa/_ldtoa.c b/lib/libc/gdtoa/_ldtoa.c index 750a25226c12..10731c43bb49 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; @@ -93,7 +94,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; |