diff options
Diffstat (limited to 'libquadmath/printf/printf_fphex.c')
-rw-r--r-- | libquadmath/printf/printf_fphex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libquadmath/printf/printf_fphex.c b/libquadmath/printf/printf_fphex.c index fc960f3..a40a6b0 100644 --- a/libquadmath/printf/printf_fphex.c +++ b/libquadmath/printf/printf_fphex.c @@ -235,8 +235,10 @@ __quadmath_printf_fphex (struct __quadmath_printf_file *fp, assert (sizeof (long double) == 16); - num0 = fpnum.ieee.mant_high; - num1 = fpnum.ieee.mant_low; + num0 = (((unsigned long long int) fpnum.ieee.mantissa0) << 32 + | fpnum.ieee.mantissa1); + num1 = (((unsigned long long int) fpnum.ieee.mantissa2) << 32 + | fpnum.ieee.mantissa3); zero_mantissa = (num0|num1) == 0; |