svn commit: r193751 - in stable/7/lib/libc: . gdtoa

Dag-Erling Smorgrav des at FreeBSD.org
Mon Jun 8 20:08:21 UTC 2009


Author: des
Date: Mon Jun  8 20:08:20 2009
New Revision: 193751
URL: http://svn.freebsd.org/changeset/base/193751

Log:
  merge r173793: silence aliasing warning.

Modified:
  stable/7/lib/libc/   (props changed)
  stable/7/lib/libc/gdtoa/_ldtoa.c

Modified: stable/7/lib/libc/gdtoa/_ldtoa.c
==============================================================================
--- stable/7/lib/libc/gdtoa/_ldtoa.c	Mon Jun  8 20:07:16 2009	(r193750)
+++ stable/7/lib/libc/gdtoa/_ldtoa.c	Mon Jun  8 20:08:20 2009	(r193751)
@@ -61,6 +61,7 @@ __ldtoa(long double *ld, int mode, int n
 	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 n
 		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;


More information about the svn-src-all mailing list