diff options
| author | drochner <drochner@NetBSD.org> | 2007-08-21 20:12:27 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2007-08-21 20:12:27 +0000 |
| commit | a82b6826f5dc54082f5ca5faa80cae2499ff1ce2 (patch) | |
| tree | 27138e5b50d4e5da419c6e3e422a3e0e38d83a69 /lib/libm/src | |
| parent | 58960d86a5670e8f446a405759e9d0a23fead081 (diff) | |
replace the last cast through void* by the SET_FLOAT_WORD macro, inspired
by a similar change in FreeBSD
Diffstat (limited to 'lib/libm/src')
| -rw-r--r-- | lib/libm/src/s_frexpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libm/src/s_frexpf.c b/lib/libm/src/s_frexpf.c index c096c1ef62c..a6ee5818c2a 100644 --- a/lib/libm/src/s_frexpf.c +++ b/lib/libm/src/s_frexpf.c @@ -15,7 +15,7 @@ #include <sys/cdefs.h> #if defined(LIBM_SCCS) && !defined(lint) -__RCSID("$NetBSD: s_frexpf.c,v 1.9 2002/12/05 16:03:42 scw Exp $"); +__RCSID("$NetBSD: s_frexpf.c,v 1.10 2007/08/21 20:12:27 drochner Exp $"); #endif #include "math.h" @@ -40,6 +40,6 @@ frexpf(float x, int *eptr) } *eptr += (ix>>23)-126; hx = (hx&0x807fffff)|0x3f000000; - *(int*)(void*)&x = hx; + SET_FLOAT_WORD(x,hx); return x; } |
