about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@zen.org>1995-04-15 16:04:06 +0000
committerBrendan Kehoe <brendan@zen.org>1995-04-15 16:04:06 +0000
commitfc40c039a42951ef1f716d6d761f3719a832d65a (patch)
treead358bd49edb4982042adec88130ff6b21ac7936
parentd619f2a8a730d974156e46178d9e2e35f94f3cef (diff)
downloadglibc-fc40c039a42951ef1f716d6d761f3719a832d65a.tar.gz
glibc-fc40c039a42951ef1f716d6d761f3719a832d65a.tar.xz
glibc-fc40c039a42951ef1f716d6d761f3719a832d65a.zip
* sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
[BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'. 
* sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double) 
[BITS_PER_MP_LIMB == 64]: Likewise.
	* sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
	[BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
	* sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
	[BITS_PER_MP_LIMB == 64]: Likewise.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/ieee754/mpn2dbl.c2
-rw-r--r--sysdeps/ieee754/mpn2ldbl.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 33438972fb..9558b3f2c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 Fri Apr 14 18:49:03 1995  Brendan Kehoe  (brendan@zen.org)
 
+	* sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
+	[BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
+	* sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
+	[BITS_PER_MP_LIMB == 64]: Likewise.
+
 	* sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
 	* sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
 	* sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
diff --git a/sysdeps/ieee754/mpn2dbl.c b/sysdeps/ieee754/mpn2dbl.c
index 01e0019b8f..85148ad63e 100644
--- a/sysdeps/ieee754/mpn2dbl.c
+++ b/sysdeps/ieee754/mpn2dbl.c
@@ -37,7 +37,7 @@ __mpn_construct_double (mp_srcptr frac_ptr, int expt, int negative)
   u.ieee.mantissa0 = frac_ptr[1] & ((1 << (DBL_MANT_DIG - 32)) - 1);
 #elif BITS_PER_MP_LIMB == 64
   u.ieee.mantissa1 = frac_ptr[0] & ((1 << 32) - 1);
-  i.ieee.mantissa0 = (frac_ptr[0] >> 32) & ((1 << (DBL_MANT_DIG - 32)) - 1);
+  u.ieee.mantissa0 = (frac_ptr[0] >> 32) & ((1 << (DBL_MANT_DIG - 32)) - 1);
 #else
   #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for"
 #endif
diff --git a/sysdeps/ieee754/mpn2ldbl.c b/sysdeps/ieee754/mpn2ldbl.c
index 831f2e5f7b..9142f97e89 100644
--- a/sysdeps/ieee754/mpn2ldbl.c
+++ b/sysdeps/ieee754/mpn2ldbl.c
@@ -37,7 +37,7 @@ __mpn_construct_long_double (mp_srcptr frac_ptr, int expt, int sign)
   u.ieee.mantissa0 = frac_ptr[1];
 #elif BITS_PER_MP_LIMB == 64
   u.ieee.mantissa1 = frac_ptr[0] & ((1 << 32) - 1);
-  i.ieee.mantissa0 = frac_ptr[0] >> 32;
+  u.ieee.mantissa0 = frac_ptr[0] >> 32;
 #else
   #error "mp_limb size " BITS_PER_MP_LIMB "not accounted for"
 #endif