This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
IEEE quadruple exponents were off.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 21 Aug 2014 02:48:05 +0000 (22:48 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 21 Aug 2014 11:50:24 +0000 (07:50 -0400)
sv.c

diff --git a/sv.c b/sv.c
index 8f208be..579e62b 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -10650,7 +10650,7 @@ S_hextract(pTHX_ const NV nv, int* exponent, U8* vhex, U8* vend)
         else
             HEXTRACT_COUNT(ix, 2);
     }
-    *exponent -= 4;
+    (*exponent)--;
 #  elif LONG_DOUBLEKIND == LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN
     /* Used in e.g. Solaris Sparc and HP-UX PA-RISC, e.g. -0.1L:
      * bf fb 99 99 99 99 99 99 99 99 99 99 99 99 99 9a */
@@ -10677,7 +10677,7 @@ S_hextract(pTHX_ const NV nv, int* exponent, U8* vhex, U8* vend)
         else
             HEXTRACT_COUNT(ix, 2);
     }
-    *exponent -= 4;
+    (*exponent)--;
 #  elif LONG_DOUBLEKIND == LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN
     /* The last 8 bytes are the mantissa/fraction.
      * (does this format ever happen?) */