about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/ieee754/flt-32/s_frexpf.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 179713af49..648136f166 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-09-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
+
+	* sysdeps/ieee754/flt-32/s_frexpf.c: Make it aliasing safe.
+
 2000-09-29  Ulrich Drepper  <drepper@redhat.com>
 
 	* elf/cache.c (save_cache): Initialize __unused field in new cache
diff --git a/sysdeps/ieee754/flt-32/s_frexpf.c b/sysdeps/ieee754/flt-32/s_frexpf.c
index a984457a87..7a4eb4cca4 100644
--- a/sysdeps/ieee754/flt-32/s_frexpf.c
+++ b/sysdeps/ieee754/flt-32/s_frexpf.c
@@ -47,7 +47,7 @@ two25 =  3.3554432000e+07; /* 0x4c000000 */
 	}
 	*eptr += (ix>>23)-126;
 	hx = (hx&0x807fffff)|0x3f000000;
-	*(int*)&x = hx;
+	SET_FLOAT_WORD(x,hx);
 	return x;
 }
 weak_alias (__frexpf, frexpf)